Skip to content

Commit e3f9ccf

Browse files
committed
Load one month back
1 parent 082bbe9 commit e3f9ccf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ startDate.setHours(0);
99
startDate.setMinutes(0);
1010
startDate.setSeconds(0)
1111
startDate.setMilliseconds(0);
12+
13+
// One month back
14+
startDate.setDate(-30);
15+
1216
const endDate = new Date();
1317
endDate.setHours(23);
1418
endDate.setMinutes(59);

0 commit comments

Comments
 (0)