This commit is contained in:
Karan
2021-11-30 18:21:53 +05:30
parent b87492137f
commit 1116181e53
13 changed files with 0 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
let future = new Date(2025, 5, 15);
console.log(future);
const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
let day = future.getDate();
let month = future.getMonth();
let year = future.getFullYear();
let myDate = `${months[month-1]} ${day} ${year}`;
console.log(myDate);