I want to migrate the older data from different system to firestore.
below command saves current timestamp
firebase.firestore.FieldValue.serverTimestamp()
I want to store older values, Is there any way available?
I want to migrate the older data from different system to firestore.
below command saves current timestamp
firebase.firestore.FieldValue.serverTimestamp()
I want to store older values, Is there any way available?
firebase.firestore.FieldValue.serverTimestamp()
is a marker value you can use in your code to write the current server-side timestamp into a date field. If you want to store another value in a date field, you can specify the value when writing.From the Firebase documentation on adding data: