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

'setHours()' Syntax, Parameters and Note

Note:

Sets the hour.
    
Syntax:
    
dateName.setHours(param1, param2, param3, param4)

Parameters:
    param1   Required; the hour. Value: 0 to 23.
    param2   Optional; the minute. Value: 0 to 59.
    param3   Optional; the seconds. Value: 0 to 59.
    param4   Optional; the milliseconds that have elapsed during the current second. 
                       Value: 0 to 999.

    

      
      








Related examples in the same category

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