As my title sais I want to make a timer that counts down the time between a unix time of the current time and a date (including hour minute and secounds) in js.
I don't have idea how to do it can you give me some help here?
As my title sais I want to make a timer that counts down the time between a unix time of the current time and a date (including hour minute and secounds) in js.
I don't have idea how to do it can you give me some help here?
var now = new Date();
var date = new Date(2012, 7, 9);
var diff = new Date(date - now);
var res = '';
res += diff.getHours() + 'h ';
res += diff.getMinutes() + 'min ';
res += diff.getSeconds() + 's';