mirror of
https://github.com/Matewoo/pdf-writer.git
synced 2026-11-18 18:42:50 +01:00
open current day on daily dish
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
let currentWeek = new Date();
|
let currentWeek = new Date();
|
||||||
currentWeek.setDate(currentWeek.getDate() - currentWeek.getDay() + 1); // Set to Monday
|
currentWeek.setDate(currentWeek.getDate() - currentWeek.getDay() + 1); // Set to Monday
|
||||||
let currentDayIndex = 0; // 0 = Monday, 4 = Friday
|
let today = new Date();
|
||||||
|
let currentDayIndex = today.getDay() - 1;
|
||||||
|
|
||||||
function getWeekNumber(date) {
|
function getWeekNumber(date) {
|
||||||
const target = new Date(date.valueOf());
|
const target = new Date(date.valueOf());
|
||||||
|
|||||||
Reference in New Issue
Block a user