Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Date and Time Methods > getHours() MethodThis method returns the hour of a Date object. SyntaxReturnsThe hour portion of dateVar, as a number from 0 to 23. UsageThis method returns the hour portion of dateVar as a number from 0 to 23. Midnight is 0, and 11 PM is 23. ExampleThis code fragment returns the number var aDate = new Date("October 31, 1986 12:13:14"); See AlsogetDate() Method |
Siebel eScript Language Reference |