Trying to use a countdown clock. I changed the jQuery var newDate to the date I am counting to. It seems to be off by a month. I don't see anything else to change. Help please.
Countdown Clock incorrect
2 replies · opened Apr 9, 2019
PpamelabeaversonApr 9, 2019
PpamelabeaversonApr 9, 2019
I found the answer to my previous question. The countdown clock counts down until 12:00 am of the day you set as newDate. However, I want to countdown to 9am. How do I add in those extra 9 hours?
SSemicolon WebSTAFFApr 9, 2019
Hello,
This is Definitely Possible. Consider using the following JS code:
jQuery(document).ready( function($){
var newDate = new Date(2019, 8, 21); // 21st September 2019
newDate.setHours(newDate.getHours() + 9); // Setting Hours to 9AM
$('#countdown-ex1').countdown({ until: newDate });
});
This will definitely work fine. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard