I have this Javascript
<script>
var START_DATE = new Date("February 21, 2018 00:00:00"); // put in the
starting date here
var INTERVAL = 1; // in seconds
var INCREMENT = 6720; // increase per tick
var START_VALUE = 17419171608; // initial value when it's the start date
var count = 0;
window.onload = function()
{
var msInterval = INTERVAL * 1000;
var now = new Date();
count = parseInt((now - START_DATE)/msInterval) * INCREMENT + START_VALUE;
document.getElementById('counter').innerHTML = count;
setInterval("count += INCREMENT;
document.getElementById('counter').innerHTML = count;", msInterval);
}
</script>
I am trying to put commas to separate the thousands in the above code but I have been unable to do so.
I tried the instructions here, but I have not been able to put the commas separating the thousands.
Any help is highly appreciated. Thanks.