MCPcopy Create free account
hub / github.com/github/awesome-copilot / dateToYMD

Function dateToYMD

skills/pr-dashboard/scripts/lib/utils.mjs:1–6  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

1export function dateToYMD(d) {
2 const y = d.getFullYear();
3 const m = String(d.getMonth() + 1).padStart(2, '0');
4 const day = String(d.getDate()).padStart(2, '0');
5 return `${y}-${m}-${day}`;
6}
7
8export function parseDateRange(text) {
9 const now = new Date();

Callers 1

parseDateRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected