nextDayfunction
The day after date.
Import it
import { nextDay } from "@johnmorrisdotca/koyomi-calendars/animate";
Definition
function nextDay(date: FlipDate): FlipDate
Parameters
| Name | Type | Description |
|---|---|---|
date | FlipDate | A year, month and day. |
Returns
FlipDate
The next day, across the end of a month or a year.
Examples
import { nextDay } from "@johnmorrisdotca/koyomi-calendars/animate";
console.log(nextDay({ year: 2026, month: 12, day: 31 }));{ year: 2027, month: 1, day: 1 }What it prints (run when this page was built)