Date.setTime()
Sets a date to a specified number of milliseconds after/before January 1, 1970
The setTime() method sets the Date object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC.
Syntax
Parameters
timeValue
An integer representing the number of milliseconds since 1 January 1970, 00:00:00 UTC.
Return value
The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date (effectively, the value of the argument).
Description
Examples
Using setTime()
setTime()
References
Contributors to this page
Uros Durdevic
Last updated