I\'m trying to get the timestamp of a document that I created in firestore, but what I get is this:
myService.ts
getDomiciliari
If you want the current Date as a timestamp you can use the following
For Firebase Functions
import admin = require('firebase-admin');
const todayAsTimestamp = admin.firestore.Timestamp.now()
For local projects
import { Timestamp } from '@google-cloud/firestore';
const myTimestampAsDate = Timestamp.now()