MCPcopy
hub / github.com/loggerhead/json4u / dateToYYYYMMDD

Function dateToYYYYMMDD

src/lib/utils.ts:15–20  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

13}
14
15export function dateToYYYYMMDD(date: Date) {
16 const year = date.getFullYear();
17 const month = String(date.getMonth() + 1).padStart(2, "0");
18 const day = String(date.getDate()).padStart(2, "0");
19 return `${year}-${month}-${day}`;
20}
21
22export function clone(o: any) {
23 if (typeof structuredClone !== "undefined") {

Callers 2

PremiumStatusFunction · 0.90
StatisticsPopoverFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected