<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [Timestamp](./firestore_.timestamp.md) &gt; [valueOf](./firestore_.timestamp.valueof.md)

## Timestamp.valueOf() method

Converts this object to a primitive string, which allows Timestamp objects to be compared using the `>`<!-- -->, `<=`<!-- -->, `>=` and `>` operators.

<b>Signature:</b>

```typescript
valueOf(): string;
```
<b>Returns:</b>

string

