getTime

Modified on Tue, 22 Aug 2023

Description

Use this function to get the milliseconds timestamp of the given date.

Syntax

getTime(date)

Returns

Return ValueDescription
NumberReturns the milliseconds timestamp of the given date.

Sample

ExampleResultDescription
getTime(2023-04-08 13:42:55)1681719775000The function extracts the milliseconds timestamp from the date and returns it, which is 1681719775000.

To view all the Date functions, click here.

See Also