Converts a date to an ISO 8601 date-only string (YYYY-MM-DD).
The input date.
ISO date string.
toISODate(new Date('2025-07-23T12:34:56Z')); // → '2025-07-23' Copy
toISODate(new Date('2025-07-23T12:34:56Z')); // → '2025-07-23'
Converts a date to an ISO 8601 date-only string (YYYY-MM-DD).