const year = String(new Date(createdAt!).getFullYear());
const month = String(new Date(createdAt!).getMonth());
const date = String(new Date(createdAt!).getDate());
const time: CreateAt = {
year,
month,
date,
func: function ({ 연, 월, 일 }) {
const year = this.year;
const month = this.month;
const date = this.date;
return `${year + 연} ${month + 월} ${date + 일}`;
},
};
const createTime = time.func({ 연: "년", 월: "월", 일: "일" });
회사가서 ㅇㅈㄹ하면 짤릴듯
temporal나올때까지 date-fns써라