Constructor
new module:br-formatting /Localised Date Formatter()
- Implements:
Methods
format(date, attributes) → {string}
Formats a date by converting it from a specified input format to a new output format.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
date |
string | The input date |
|||||||||||||||||||||||||
attributes |
object |
Map of configuration options Properties
|
- Implements:
Returns:
The date expressed in the output format, or the input value if it could not be parsed in the input format
- Type
- string