Last Sync: 2026-01-01 23:10 (Mobile)
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
<%
|
||||
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주차
|
||||
%>
|
||||
Reference in New Issue
Block a user