Sets the value of a Date object according to local time.
Method of Date
Syntax
setTime(timevalue )
Parameters
Parameter | Description |
---|---|
timevalue | An integer representing the number of milliseconds since 1 January 1970 00:00:00. |
Description
Use the setTime method to help assign a date and time to another Date object.