Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Date Object >
setHours() Method
This method sets the hour of a Date object to a specific hour of a 24-hour clock.
Syntax
dateVar.setHours(hour[, minute[, second[, millisecond]]])
Returns
Not applicable
Usage
This method sets the hour of dateVar to hour, expressed as a number from 0 to 23. It can optionally also set the UTC minute, second, and millisecond. Midnight is expressed as 0, and 11 PM as 23.
See Also
getHours() Method, setMilliseconds() Method, setMinutes() Method, setSeconds() Method, and setUTCHours() Method
Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference Published: 18 April 2003 |