Date.setTime

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.

Examples

See also

Date.getTime, Date.setUTCHours

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.