- formatDate(date, format?, config?): string
Parameters
- date: DateProp
Optional
format: DateFormatTypeOptional
config: DateUtilsConfig
Returns string
- formatDate(date, format?, config?): string
Parameters
- date: DateProp
Optional
format: stringOptional
config: DateUtilsConfig
Returns string
Param: date
Param: format
Param: config
Param: config.utc
formats in utc timezone (default: false).
Param: config.unique
returns unique formatted dates in case of an array (default: false).
Param: config.separator
the separator to use when joining multiple dates (default: ', ').
Returns
formatted date(s) as a string.