()
| 32 | } |
| 33 | |
| 34 | function 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 | |
| 42 | function getThisMonth() { |
| 43 | let date = new Date(); |