show current date/time

This commit is contained in:
sanjayk03-dev
2024-08-28 11:45:46 +05:30
parent 6944d45600
commit a056abc1a4
2 changed files with 10 additions and 2 deletions

View File

@@ -40,8 +40,13 @@ module.exports = {
z_slider_variant: " ",
config: "",
selected_date: null,
selected_hours: null,
selected_minutes: null,
now: new Date(),
current_date: `${(now.getMonth() + 1).toString().padStart(2, "0")}:${now
.getHours()
.toString()
.padStart(2, "0")}:${now.getFullYear()}`,
selected_hours: `${now.getMinutes()}`,
selected_minutes: `${now.getMinutes()}`,
};
},