Reference · Rules, solvers and generation
tsunagiDayfunction
The day a moment falls on, in UTC, or the same day if it is already written as one. Throws on a date that is not one.
Import it
import { tsunagiDay } from "@johnmorrisdotca/tsunagi";
Definition
function tsunagiDay(date: string | Date): TsunagiDay
Parameters
| Name | Type | Description |
|---|---|---|
date | string | Date | A UTC date or native date string. |
Returns
string
The day a moment falls on, in UTC, or the same day if it is already written as one. Throws on a date that is not one.
Examples
import { tsunagiDay } from "@johnmorrisdotca/tsunagi";
console.log(tsunagiDay("2026-10-12"));2026-10-12What it prints (run when this page was built)