Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ fmt
Function
fmt
scripts/sendWeeklyExcelSheet.mjs:17–19 ·
view source on GitHub ↗
(d)
Source
from the content-addressed store, hash-verified
15
startDate.setDate(today.getDate() - 7);
16
17
function
fmt(d) {
18
return
d.toISOString().split(
'T'
)[0];
19
}
20
21
return
{startDate: fmt(startDate), endDate: fmt(endDate)};
22
}
Callers
1
getPreviousWeekRange
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected