This commit is contained in:
Karan 2021-11-25 19:59:38 +05:30 committed by GitHub
parent fdba02455c
commit 62ddb71588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +0,0 @@
let today = new Date();
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]} ${day} ${year}`;
console.log(myDate);