This commit is contained in:
choibk committed 2025-12-17 01:31:33 +09:00
1 parent bab5060120
commit 99081b9259
748 files changed
+35151 -228

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
<%
moment(tp.file.title, "YYYY-MM-DD").startOf("month").format("ddd")
%>
<% tp.date.weekday("YYYY-MM-DD", 4) %>
<%*
const getWeek = (date) => {
const currentDate = date.getDate();
const firstDay = new Date(date.setDate(1)).getDay();
return Math.ceil((currentDate + firstDay) / 7);
};
const week = getWeek(new Date("moment(tp.file.title, "YYYY-MM-DD")"));
console.log(week + "주차");
// 2주차
%>