2.5.4 Formatting a Date
Date fields can be formatted in script using the 'formatDate()' function. For example:
var d = CALC.today(); // e.g., Feb-21-2007
Text1.text = 'Today Is: ' + formatDate(d, 'MM-dd-yy');
// Today Is: 02/21/07
| << 2.5.3 Extracting a Date Component | © 1996-2013 InetSoft Technology Corporation (v11.4) | 2.6 Protecting a Viewsheet from Script Errors >> |