Siebel eScript Language Reference > Siebel eScript Commands > Date and Time Methods >
toGMTString() Method
This method converts a Date object to a string, based on Greenwich mean time. Syntax
dateVar.toGMTString()
Returns
The date to which dateVar is set as a string of the form Day Mon dd hh:mm:ss yyyy GMT. Example
This example accepts a number of milliseconds as input and converts it to the GMT time represented by the number of milliseconds before or after the time on the computer's clock. function clickme_Click () { var aDate = new Date; var milli = 200000; aDate.setUTCMilliseconds(milli); TheApplication().RaiseErrorText(aDate.toGMTString()); }
See Also
Clib.asctime() Method toLocaleString() Method and toString() Method toUTCString() Method
|