MCPcopy Create free account
hub / github.com/Autoanys/Autoanys / getLastWeek

Function getLastWeek

frontend/src/components/ComponentsEditor/variableConfig.js:52–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52function getLastWeek() {
53 let date = new Date();
54 let day = date.getDay();
55 let diff = date.getDate() - day - 6;
56 date.setDate(diff);
57 return date.toISOString().split("T")[0];
58}
59
60function getLastMonth() {
61 let date = new Date();

Callers 1

variableConfig.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected