CalendarDatetype
A day on the calendar: a four-digit year, a month 1 to 12 and a day of the month.
Import it
import type { CalendarDate } from "@johnmorrisdotca/koyomi-calendars";
Definition
interface CalendarDate {
year: number;
month: number;
day: number;
}
Members
| Name | Type | Description |
|---|---|---|
year | number | |
month | number | |
day | number |
Examples
import { calendarWeekend, type CalendarDate } from "@johnmorrisdotca/koyomi-calendars";
const saturday: CalendarDate | undefined = calendarWeekend(2026, 11, 7)?.saturday;
console.log(saturday);{ year: 2026, month: 11, day: 7 }What it prints (run when this page was built)