月次ページ作成script
code:月次テンプレート.js
(() => {
const today = new Date();
const currentYear = today.getFullYear();
const currentMonth = today.getMonth() + 1;
const formatYearMonth = (year, month) => ${year}/${month};
const currentYearMonth = formatYearMonth(currentYear, currentMonth);
const prevMonth = currentMonth === 1 ? formatYearMonth(currentYear - 1, 12) : formatYearMonth(currentYear, currentMonth - 1);
const nextMonth = currentMonth === 12 ? formatYearMonth(currentYear + 1, 1) : formatYearMonth(currentYear, currentMonth + 1);
const lastYear = formatYearMonth(currentYear - 1, currentMonth);
return `${currentYearMonth}
今月の画像
目標
めーんとぴっく!
世相!
いんぷっと
Complete
wip
消費
table:消費
対象 金額 日時
総括
来月に向けて`;
})();
public.icon