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

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

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

Clib.tmpnam() Method
The Date Constructor in Siebel eScript
Date.toSystem() Method
The Time Object

Siebel eScript Language Reference