format
String
format
(
oDate
,
oConfig
,
sLocale
)
Takes a native JavaScript Date and formats to string for display to user.
- Parameters:
-
oDate <Date>
Date. -
oConfig <Object} (Optional) Optional configuration values:
- format {String>
- Any format defined by strftime is supported
sLocale <String>
(Optional) The locale to use when displaying days of week,
months of the year, and other locale specific strings. The following locales are
built in:
- en
- English
- en-US
- US English
- en-GB
- British English
- en-AU
- Australian English (identical to British English)
- Returns:
String
- Formatted date for display.