format
String
format
(
oDate
,
oConfig
)
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>
- Currently only the following formats are supported: "MM/DD/YYYY", "YYYY/MM/DD", or "DD/MM/YYYY"
- Returns:
String
- Formatted date for display.