Arf 05/07 (mm/dd/aaaa)
This commit is contained in:
parent
b7ab05dec2
commit
a612a74197
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ $(
|
||||||
}, 500);
|
}, 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 now = new Date();
|
||||||
const days = (end - now < 0) ? 0 : Math.floor((end - now) / 86400000); // 24*60*60*1000
|
const days = (end - now < 0) ? 0 : Math.floor((end - now) / 86400000); // 24*60*60*1000
|
||||||
document.getElementById('kkbbDays').innerHTML = days;
|
document.getElementById('kkbbDays').innerHTML = days;
|
||||||
|
|
Loading…
Reference in a new issue