JavaScript Date a Firebase Timestamp
const created = firebase.firestore.Timestamp.fromDate(new Date()).toDate();
Satnam Singh
const created = firebase.firestore.Timestamp.fromDate(new Date()).toDate();