Convert Integer Date to JavaScript Date Method
The Convert Integer Date to JavaScript Date method converts a time from the format that the Clib Convert Time to Integer method returns to a standard JavaScript date object. To call the Convert Integer Date to JavaScript Date method, you use the date constructor rather than a variable.
Format
Date.fromSystem(time)
The following table describes the arguments for the Convert Integer Date to JavaScript Date method.
Argument | Description |
---|---|
time |
A variable that holds a system date. |
Example
The following example creates a date object from date information obtained through Clib:
var SysDate = Clib.time();
var ObjDate = Date.fromSystem(SysDate);
For more information, see the following topics: