Reference · Rules, maps and records
tenkaDayfunction
The day a moment falls on, in UTC, written YYYY-MM-DD. Throws a RangeError for an invalid Date.
Import it
import { tenkaDay } from "@johnmorrisdotca/tenka";
Definition
function tenkaDay(at: Date): string
Parameters
| Name | Type | Description |
|---|---|---|
at | Date | The date whose UTC day selects the daily seed. |
Returns
string
The day a moment falls on, in UTC, written YYYY-MM-DD. Throws a RangeError for an invalid Date.
Examples
import { tenkaDay } from "@johnmorrisdotca/tenka";
console.log(tenkaDay(new Date("2026-10-12T12:00:00Z")));2026-10-12What it prints (run when this page was built)