I am updating our Firestore collection date fields and noticing that the dates are being written as ISO strings and not a date. What I expect to see is that a Timestamp value is stored in Firestore.
Example code being used:
const doc = {
lastUpdatedAt = new Date(),
}
updateCollection.trigger({
additionalScope: {
collectionId: 'abcd',
doc,
}
})
The collection document is updated with the value but the date written is an ISO String value. When using Retool, what is the correct way to write a date to Firestore so it stores a Timestamp value?
written as:
Expect to see:
Note: these are sample I pulled from our collections, not the actual dates/fields in the example above