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

Date.fromSystem() Static Method


This method converts a time in the format returned by the Clib.time() method to a standard JavaScript Date object.

Syntax

Date.fromSystem(time)

Parameter
Description
time
A variable holding a system date

Returns

Not applicable

Usage

Date.fromSystem() is a static method, invoked using the Date constructor rather than a variable.

Example

To create a Date object from date information obtained using Clib, use code similar to:

var SysDate = Clib.time();
var ObjDate = Date.fromSystem(SysDate);

See Also

The Time Object, Clib.time() Method, The Date Constructor, and Date.toSystem() Method


 Siebel eScript Language Reference 
 Published: 18 April 2003