function addZero(n) {
return n < 10 ? "0" + n : n;
}
const newcreateYear = new Date(before.createdAt).getFullYear();
const newcreateMonth = addZero(new Date(before.createdAt).getMonth() + 1);
const newcreateDay = addZero(new Date(before.createdAt).getDate());
const newRecentCYear = new Date(before.recentConnectionDate).getFullYear();
const newRecentCMonth = addZero(
new Date(before.recentConnectionDate).getMonth() + 1
);
const newRecentCDay = addZero(
new Date(before.recentConnectionDate).getDate()
);
카테고리 없음