Arf 05/07 (mm/dd/aaaa)

This commit is contained in:
JosephK 2018-06-14 12:49:22 +02:00
parent b7ab05dec2
commit a612a74197

View file

@ -9,7 +9,7 @@ $(
}, 500);
});
const end = new Date('04/08/2018 11:59 PM');
const end = new Date('07/05/2018 11:59 PM');
const now = new Date();
const days = (end - now < 0) ? 0 : Math.floor((end - now) / 86400000); // 24*60*60*1000
document.getElementById('kkbbDays').innerHTML = days;