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