Time between times

I am trying to have two countdowns, one set to 6:00 PM and one set to 6:00 AM. When its past 6 AM and before 6 PM to have one show. I can’t figure out how to get the countdown to work in the first place. Can anyone help?

Thanks in advance!

Check out this example application. that shows you how to do this. You’ll want to adjust your timezone to test the different times of day. I think this what you are looking for?

In either case, you’ll want to familiarize yourself with these items in the forums and/or the documentation.

  • Time manipulation
  • Conditionals

Time manipulation is built into bubble and while it can be a somewhat tedious to implement, its pretty comprehensive for what it is. Occasionally, I have found that it is insufficient and plugins or custom javascript are needed.

Hope this helps!

Would I be able to have it automatically updating?

I updated the example application using the timercheck plugin
You need a separate timer object for each countdown you want to simultaneously run.

I created a 3 timers counting down to the 3 possible countdown conditions.

  1. Its 12:01 AM (next 6:00AM is today)
  2. Its 06:01AM (next 6:00AM is tomorrow)
  3. Its between 6:00AM and 6:00PM we count down to 6:00PM today only.

You need to initialize the timer with the time calculations on page load workflow (even though timercheck has a default value this doesn’t seem to work)

Using a workflow and set the countdown time from now in miliseconds i.e. :format as seconds * 1000

updated example application

This topic was automatically closed after 70 days. New replies are no longer allowed.