Is there a way to alter this expression to count up rather than count down… If not what could be an easy way to do a count up in the british format, say from 4/10/2020 to 20/4/2021???
startDate = "Apr 30 2012";
endDate = "Feb 25 1980";
rate = 2; // counts per second
d1 = new Date(startDate);
d2 = new Date(endDate);
msPerDay = 24*60*60*1000;
t = Math.floor((time-inPoint)*rate);
ms = Math.max(d1.getTime() - t*msPerDay,d2);
d = new Date(ms);
dy = "" + d.getDate();
mo = "" + (d.getMonth()+1);
yr = "" + d.getFullYear();
if (dy.length < 2) dy = "0" + dy;
if (mo.length < 2) mo = "0" + mo;
dy + "/" + mo + "/" + yr