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.




The date to which dateVar is set as a string of the form Day Mon dd hh:mm:ss yyyy GMT.


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;

See Also

Clib.asctime() Method
toLocaleString() Method and toString() Method
toUTCString() Method

Siebel eScript Language Reference