add: schedule db
This commit is contained in:
8
utils/date.js
Normal file
8
utils/date.js
Normal 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;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user