Siebel eScript Language Reference > Methods Reference > Date and Time Methods >

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()

Example

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());
}

Related Topics

For more information, see the following topics:

Siebel eScript Language Reference Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.