Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Universal Time Methods > getUTCMonth() MethodThis method returns the UTC month of a Date object. SyntaxReturnsThe UTC month of dateVar as a number from 0 to 11. UsageThis method returns the UTC month of dateVar as a number from 0 through 11. January is 0, and December is 11. ExampleThis code fragment displays 5, the month portion of the date (determined by adding 1 to the value returned by getMonth), followed by the GMT equivalent (determined by adding 1 to the value returned by getUTCMonth), which is probably the same. var aDate = new Date("May 1, 2005 13:24:35"); See Also |
Siebel eScript Language Reference |