Formatting a Date

Use the 'formatDate()' function to format a Date field. For example:

// Get today's date, e.g., Thur Oct 01 16:54:22 EDT 2009

var d = CALC.today();

 

// Format as “Today Is: 10/01/09”

Text1.text = 'Today Is: ' + formatDate(d, 'MM/dd/yy');

<< Extracting a Date Component © 1996-2013 InetSoft Technology Corporation (v11.4) 3.6 Data Tables >>