'setTime()' Syntax, Parameters and Note : setTime « Javascript Methods « JavaScript Reference

'setTime()' Syntax, Parameters and Note

Note:

Sets the time by supplying milliseconds elapsed since January 1, 1970.
    
Syntax:
    
dateName.setTime(param1)

Parameters:
    param1   Required; the number of milliseconds.

    

      
      








Related examples in the same category

1.'setTime()' Example
2.'setTime()' is applied to