function eventDateToCalendarDate
eventDateToCalendarDate(utcIso: string): string | null

Convert a UTC ISO datetime to a YYYY-MM-DD calendar date in the given timezone. Returns null if the input is empty or invalid. Used by the calendar view to map standard event dates to calendar days.

Parameters

utcIso: string

Return Type

string | null

Usage

import { eventDateToCalendarDate } from "doc.ts";