Function: toISO()
toISO(
d):string
Defined in: src/lib/dates/index.ts:83
Format a CalendarDate as an ISO YYYY-MM-DD string, zero-padding month and day to two digits.
Inverse of fromISO. The year is emitted as-is (not padded), so years < 1000 are not padded.
Parameters
d
The calendar date to format.
Returns
string
The date as YYYY-MM-DD.