Siebel eScript Language Reference > Siebel eScript Commands > The Date Object >

toGMTString() Method


This method converts a Date object to a string, based on Greenwich Mean Time.

Syntax

dateVar.toGMTString()

Parameter
Description
Not applicable
 

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 system 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, and toUTCString() Method


 Siebel eScript Language Reference 
 Published: 18 April 2003