I want to count down to a specific time on a specific date. All I have now is count to a specific date, which is at 12:00am. I need to count it down to something like 3:00pm. Is this possible?
What I got now:
var date = new Date(2015, 6, 31); // !!! Maanden beginnen bij 0, dus Januari is 0.
var now = new Date();
var diff = (date.getTime()/1000) - (now.getTime()/1000);
Thanks for the help!
EDIT:
Apparently it was much simpler than I thought ...
I just had to do
var date = new Date(2015,6, 31, 15,00);