How to convert Date (from google sheet data) to TimeStamp (Firestore) using AppScript?
问题 I've got a date object in Google Sheet which I want to import to firestore as a timestamp object, but it doesn't work when I do it directly. If I enter the current date, data.date = new Date(dateSt); it stores an empty map object in firestore. What should I do to convert the date object to timestamp. Full Code: function classRoutineFunction() { const email = "my_email"; const key = "my_private_key"; const projectId = "my_projectID"; var firestore = FirestoreApp.getFirestore (email, key,