Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Universal Time Methods > setUTCFullYear() MethodThis method sets the UTC year of a Date object to a specified four-digit year. SyntaxdateVar.setUTCFullYear(year[, month[, date]])
UsageThis method sets the UTC year of dateVar to year. Optionally, it can set the UTC month of year to month, and the UTC date of month to date. The year must be expressed in four digits. ExampleThe following example uses the setUTCFullYear method to assign the date of the 2000 summer solstice and the setUTCHours method to assign its time to a Date object. Then it determines the local date and displays it. function dateBtn_Click () var localHr = solstice2K.getHours(); var msg = "In your location, the solstice is on " + localDay + A sample run of this code produced the following result: In your location, the solstice is on Tue Jun 20, at 6:48 P.M., Standard Time. See AlsogetUTCFullYear() Method |
Siebel eScript Language Reference |