Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Date Object >
Date.UTC() Static Method
This method interprets its parameters as a date and returns the number of milliseconds between midnight, January 1, 1970, and the date and time specified.
Syntax
Date.UTC(year, month, days, [, hours[, minutes[, seconds]]])
Returns
An integer representing the number of milliseconds before or after midnight January 1, 1970, of the specified date and time.
Usage
Date.UTC is a static method, invoked using the Date constructor rather than a variable. The parameters are interpreted as referring to Greenwich Mean Time (GMT).
Example
This example shows the proper construction of a Date.UTC declaration and demonstrates that the function behaves as specified.
function clickme_Click ()
{
var aDate = new Date(Date.UTC(2001, 1, 22, 10, 11, 12));
TheApplication().RaiseErrorText("The specified date is " +
aDate.toUTCString());
}See Also
Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference Published: 18 April 2003 |