Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Date and Time Methods > setTime() MethodThis method sets a Date object to a date and time specified by the number of milliseconds before or after January 1, 1970. SyntaxUsageThis method sets dateVar to a date that is milliseconds milliseconds from January 1, 1970, GMT. To set a date earlier than that date, use a negative number. ExampleThis example accepts a number of milliseconds as input and converts it to a date and hour. function dateBtn_Click () switch(anHour) TheApplication().RaiseErrorText("The specified date is " + Example, if you enter a value of -345650, the result is: The specified date is 12/31/1969 at 3 P.M. See Also |
Siebel eScript Language Reference |