Date Type

Date is represented as milliseconds since EPOC (Equipment Point of Connection). Creating a date object without specifying any parameters gives the current time:

var now = new Date();

Convert a Date to a string using the global function formatDate().

str = formatDate(now, 'yyyy-MM-dd'); // 2002-02-21

The Date format uses the same syntax as the java.text.SimpleDateFormat class.

<< String Type © 1996-2013 InetSoft Technology Corporation (v11.5) Arrays >>