Date Formatting - tsgrp/HPI GitHub Wiki

Date formatting has made it to HPI 2.1!

Here is the call to the formatter:

app.context.dateService.getFormattedDate(dates, format);

The date formatter itself assumes that the date(s) sent to it are in an int or int array, all in ISO format. If a single date is passed in, then a single formatted date is returned. If an array of dates is passed in, an array of formatted dates is returned.

Currently supports any format using the jquery UI datepicker pattern conventions: http://api.jqueryui.com/datepicker/

Application Config Stock Formats:

  • USA Standard: Day, Month Date, Year (Wednesday, July 10, 2013)
  • Euro Standard: Date-MMM-Year (10-JUL-2013)