Tag Archive

Date to Millisecond Calculators

By Colin

Several date to millisecond calculators, useful when coding countdown timers, cookie expiration settings or other date related scripts. The calculators are coded in JavaScript. var today = new Date(); var startOfEpoch = new Date(0); function nameBtn(){ document.forms.d2mBtn.value = "converted to milliseconds since "+startOfEpoch; } jQuery(nameBtn); The known data: Your computer's time: equals milliseconds since document.write(startOfEpoch); -- the start of Unix Epoch... »