JavaScript » Date » setTime

Syntax:
object.setTime(timeVal)

This method is used to set the time of a Date object according to local time. The timeVal argument is an integer that represents the number of milliseconds elapsed since 1 January 1970 00:00:00.