function listingDateToCalendarDate
listingDateToCalendarDate(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 listing dates to calendar days.

Parameters

utcIso: string

Return Type

string | null

Usage

import { listingDateToCalendarDate } from "doc.ts";