MCPcopy Create free account
hub / github.com/devxnshsharma/UnMessify / formatDateISO

Function formatDateISO

charts.js:540–546  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

538}
539
540function formatDateISO(date) {
541 const d = new Date(date);
542 const year = d.getFullYear();
543 const month = String(d.getMonth() + 1).padStart(2, '0');
544 const day = String(d.getDate()).padStart(2, '0');
545 return `${year}-${month}-${day}`;
546}

Callers 2

updateDailySpendChartFunction · 0.85
updateDepletionChartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected