add: schedule db

This commit is contained in:
Muhammad Afif
2025-10-11 12:13:08 +07:00
parent e581f5b5bb
commit 988bcaf301
12 changed files with 144 additions and 7 deletions

8
utils/date.js Normal file
View File

@@ -0,0 +1,8 @@
module.exports = {
formattedDate: (timestamp) => {
let date = new Date(timestamp);
let options = { day: "numeric", month: "long", year: "numeric" };
let formattedDate = date.toISOString("id-ID", options);
return formattedDate;
},
};