Convert Date to GMT String Method

The Convert Date to GMT String method converts a date object to a string according to Greenwich mean time. It returns the date that Siebel CRM sets in dateVar. It returns this date as a string in the following format:

Day Mon dd hh:mm:ss yyyy GMT.

Format

dateVar.toGMTString()

The following example accepts a number of milliseconds as input and converts it to GMT time as the number of milliseconds before or after the time on the computer clock:

function clickme_Click ()
{
   var aDate = new Date;
   var milli = 200000;
   aDate.setUTCMilliseconds(milli);
   TheApplication().RaiseErrorText(aDate.toGMTString());
}

For more information, see the following topics: