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

Function formatDue

packages/app-core/src/components/TasksRow.tsx:32–37  ·  view source on GitHub ↗
(iso: string | undefined)

Source from the content-addressed store, hash-verified

30}
31
32function formatDue(iso: string | undefined): string {
33 if (!iso) return ''
34 const d = new Date(`${iso}T00:00:00`)
35 if (Number.isNaN(d.getTime())) return iso
36 return d.toLocaleDateString(undefined, { month: 'short', day: 'numeric' })
37}
38
39export function TasksRow({
40 task,

Callers 1

TasksRowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected