MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / toIsoDate

Function toIsoDate

packages/shared-domain/src/tasks.ts:273–278  ·  view source on GitHub ↗
(d: Date)

Source from the content-addressed store, hash-verified

271// ---------------------------------------------------------------------------
272
273function toIsoDate(d: Date): string {
274 const y = d.getFullYear()
275 const m = String(d.getMonth() + 1).padStart(2, '0')
276 const day = String(d.getDate()).padStart(2, '0')
277 return `${y}-${m}-${day}`
278}
279
280/** Group using a "today" anchor — caller supplies it so tests are stable and
281 * the user's timezone is respected. Waiting overrides everything except Done.

Callers 3

groupTasksFunction · 0.70
isOverdueFunction · 0.70
toIsoDateLocalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected