Answers for "day count until Christmas"

0

day count until Christmas

let date= new Date()
let date1 = date.getTime() 
let year = date.getFullYear()
let date2 = new Date(year, 11, 25).getTime()
let count = (date2 - date1) 
let count1 = Math.ceil(count / (1000 * 3600 * 24))
console.log(count1)
Posted by: Guest on April-21-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language