I wanted to get firebase current timestamp, not able to find a way to get that. I want to save child as shown in the image. And for that I\'ve to get timestamp and get the d
Actually, you can use cloud functions, and get the timestamp via an HTTP request. The function is very simple.
exports.getTimeStamp = functions.https.onRequest((req, res)=>{ res.setHeader('Content-Type', 'application/json'); res.send(JSON.stringify({ timestamp: Date.now() })); });