Home > @firebase/firestore > / > Timestamp > toDate
Timestamp.toDate() method
Converts a Timestamp
to a JavaScript Date
object. This conversion causes a loss of precision since Date
objects only support millisecond precision.
Signature:
toDate(): Date;
Returns:
Date
JavaScript Date
object representing the same point in time as this Timestamp
, with millisecond precision.