Formats the provided date object based on the specified options. Returns String.
| Parameter | Type | Description |
|---|---|---|
| date | Object | Date object to be formatted. |
| options | String|Object |
String: One of short, medium, long, full, default Object: Date formatting options. See below. |
options object properties:
| Parameter | Type | Description |
|---|---|---|
| format | String | short, medium, long, full or default. If only format specified, both date and time are returned. |
| date | String | short, medium, long, full or default. If only date specified, only date returned. |
| time | String | short, medium, long, full or default. If only time specified, only time returned. |
| countryCode | String | Two letter IETF/ISO 639 code for a country/region. Optional. Default is current device locale. |







0 Comments