toTimestamp
The toTimestamp() function returns the millisecond timestamp of a TheDate.
Interactive example
Syntax
typescript
function toTimestamp<
GenericInput extends TheDate
>(
input: GenericInput
): numberParameters
input: TheTheDateto convert.
Return value
The timestamp in milliseconds since January 1, 1970 UTC.
