📅Get Date or String
getDateOrString ⇒ string
string
Gets a formatted date string or returns the input as is.
Kind: global variable
Returns: string
- The formatted date string or the original input.
Param | Type | Default | Description |
---|---|---|---|
dateInput |
| The date to format. Can be a date string (ISO 8601) or a Date object. | |
createdTimestamp |
| A fallback timestamp to use if dateInput is undefined or null. | |
[localDateType] |
|
| The locale for the date format (default is English). |
Last updated