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

Function getThisWeek

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

Source from the content-addressed store, hash-verified

32}
33
34function getThisWeek() {
35 let date = new Date();
36 let day = date.getDay();
37 let diff = date.getDate() - day + (day == 0 ? -6 : 1);
38 date.setDate(diff);
39 return date.toISOString().split("T")[0];
40}
41
42function getThisMonth() {
43 let date = new Date();

Callers 1

variableConfig.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected