Reference · Streams, draws and seeds
addDaysfunction
The day by days after (or, negative, before) a day.
Import it
import { addDays } from "@johnmorrisdotca/tane";
Definition
function addDays(day: DayKey, by: number): DayKey
Parameters
| Name | Type | Description |
|---|---|---|
day | string | A real calendar day in YYYY-MM-DD form. |
by | number | The signed number of calendar days to add. |
Returns
string
The day by days after (or, negative, before) a day.
Examples
import { addDays } from "@johnmorrisdotca/tane";
console.log(addDays("2026-10-11", 1));2026-10-12What it prints (run when this page was built)