MCPcopy Index your code
hub / github.com/adobe/react-spectrum / fmt

Function fmt

scripts/sendWeeklyExcelSheet.mjs:20–22  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

18 startDate.setDate(today.getDate() - 7);
19
20 function fmt(d) {
21 return d.toISOString().split('T')[0];
22 }
23
24 return {startDate: fmt(startDate), endDate: fmt(endDate)};
25}

Callers 1

getPreviousWeekRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected