JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Date.setHours() Method

Name

Date.setHours() Method---set the hours field of a Date

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

date.setHours(hours)

Arguments

hours

An integer between 0 (midnight) and 23 (11pm) that is set as the hours value for the Date object date.

Returns

nothing

See Also

"Date", "Date.getHours()"


Previous Home Next
Date.setDate() Book Index Date.setMinutes()

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
This HTML Help has been published using the chm2web software.