Skip to main content
function schedulingDay(iso): SchedulingDay;
Creates a SchedulingDay from a YYYY-MM-DD string. Parses the date once in UTC and pre-computes all fields so that no downstream code ever needs to construct a Date object.

Parameters

iso
required
`${number}-${number}-${number}`Date string in YYYY-MM-DD format

Returns

SchedulingDay