Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Simple Text Recurring Countdown/Timer

Discussion in 'Misc WordPress Requests' started by Shannon @ Oley Media, Dec 13, 2017.

  1. Shannon @ Oley Media


    Reply To: Simple Text Recurring Countdown/Timer, by Shannon @ Oley Media Group

    You could try replacing the ‘var countDownDate’ declaration with something like this to give you next Tuesday:

    var countDownDate = new Date();
    countDownDate.setDate(countDownDate.getDate() + (2 - 1 - countDownDate.getDay() + 7) % 7 + 1); // Set date to next Tuesday (2 = 2nd day of week)
    countDownDate.setHours(8); //Set to 8am
    countDownDate.getTime(); // Convert to Time


    Reply To: Simple Text Recurring Countdown/Timer

Share This Page

Monarch Social Sharing Plugin