@welldot/utils
toCalendarDate
Formats a Date as a .well calendar date (YYYY-MM-DD) from its local components — never through UTC, which could shift the day.
toCalendarDate(
date):string
Formats a Date as a .well calendar date (YYYY-MM-DD) from its local
components — never through UTC, which could shift the day.
Parameters
date
Date
Returns
string