datePart(interval, date)
Extracts the specified date interval. For the valid interval values, please refer to the table under the dateAdd() function discussion.
Parameters
interval The interval value to be extracted.
date The date from which the interval is to be
extracted.
Example
datePart('m', new Date()); // returns current month
| << dateDiff(interval, date1, date2) | © 1996-2013 InetSoft Technology Corporation (v11.4) | JS.5 Array Object Functions >> |