Formats a Date object to an ISO string without the time portion.
28 weeks ago
function toISODate(date: Date): string { return date.toISOString().split("T")[0]; }
27 weeks ago