Last Sync: 2026-01-08 23:23 (Mobile)

This commit is contained in:
2026-01-08 23:39:40 +09:00
parent 85aa76fba4
commit d74ed2985d
1090 changed files with 107025 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
<%
const getWeekNumber = (dateFrom = new Date()) => {
const currentDate = dateFrom.getDate();
const startOfMonth = new Date(dateFrom.setDate(1));
const weekDay = startOfMonth.getDay();
return parseInt(((weekDay - 1) + currentDate) / 7) + 1;
}
getWeekNumber(new Date());
getWeekNumber(new Date('2020-01-28'));
%>