setHours Method
Description
Modifies the hours stored in the Date object.Syntax
dateObj.setHours( numHours )
Arguments
numHours: A numeric value equal to the desired hours value.
Remarks
If the value of numHours is greater than 23 or negative, the stored date will be incremented an appropriate number of days. For example, if the stored date is "Jan 5, 1996 00:00:00", and setHours(30) is called, the date will be changed to "Jan 6, 1996 06:00:00". Negative numbers have a similar behavior.