4

Is it possible to get Timestamp or creation date from firestore doc? No matter how hacky the solution is, anything is viable. I believe firestore has to store some kind of timestamp to every object it saves? If so, is there any way to get to that value? Previously in beta v1, they had this create_time field, which is apparently now removed. Any help is greatly appreciated.

Thank you.

Riku
  • 107
  • 3
  • 11
  • This is a bit old --but I think that the answer is a lie. There is a created at timestamp. If you look in the chrome devtools from the firestore console and go through the networking data to find where your browser reads the collection data there are additional fields on the document: createdTime and updatedTime – Peter Davis Oct 18 '22 at 20:46

1 Answers1

11

There is no way to get the creation timestamp from metadata of a Firestore document through the API. If you want such a value, you'll have to store it yourself.

See:

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807