Function: formatDate()
formatDate(
date
,formatStr
,timezone
?,options
?):string
format the date
Parameters
• date: string
| number
| Date
the original date
• formatStr: string
= 'yyyy-MM-dd'
the string of tokens
• timezone?: string
the time zone of this local time, can be an offset or IANA time zone
• options?: ToDateOptionsWithTZ
the object with options. See [Options]https://date-fns.org/docs/Options
Returns
string