Hopefully this makes sense,
I have a javascript countdown on my page, when it drops down to single digits, such as '9 days' I need to append a 0 to the beginning.
I'm not sure if this is possible with Javascript so thought I'd ask here, My current code im using is
<!-- countdown -->
today = new Date();
expo = new Date("November 03, 2011");
msPerDay = 24 * 60 * 60 * 1000 ;
timeLeft = (expo.getTime() - today.getTime());
e_daysLeft = timeLeft / msPerDay;
daysLeft = Math.floor(e_daysLeft);
document.getElementById('cdown').innerHTML = daysLeft