I'm fetching a Timestamp
object from Firebase/Firestore
. I want to present the date in a dd/MM/YYYY hh:mm
format.
I've tried to convert it to JS date and use toString()
, but I can't figure out how can I set the format:
const dateString = doc.data()["date"].toDate().toString();
Does anybody have an idea?