MCPcopy
hub / github.com/date-fns/date-fns / d

Function d

pkgs/core/src/_lib/format/lightFormatters/index.ts:41–43  ·  view source on GitHub ↗
(date: Date, token: string)

Source from the content-addressed store, hash-verified

39
40 // Day of the month
41 d(date: Date, token: string): string {
42 return addLeadingZeros(date.getDate(), token.length);
43 },
44
45 // AM or PM
46 a(date: Date, token: string): string {

Callers

nothing calls this directly

Calls 1

addLeadingZerosFunction · 0.90

Tested by

no test coverage detected