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

Function pad2

packages/app-core/src/lib/template-render.ts:48–50  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

46}
47
48function pad2(n: number): string {
49 return String(n).padStart(2, '0')
50}
51
52/** ISO `YYYY-MM-DD` for the given date (local time). */
53export function formatISODate(date: Date): string {

Callers 4

formatISODateFunction · 0.70
formatTimeFunction · 0.70
formatDateFunction · 0.70
substituteTokensFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected