How do I convert Firebase Cloud Functions' timestamp format into something like 1665346052?
In my Firebase cloud functions, I am using admin.firestore.FieldValue.serverTimestamp(), to write a server timestamp to Firestore. The format that this outputs is October 5, 2022 at 10:42:09 PM UTC-5. However, the problem is that when I write to Firestore from…