cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lmauriceparker
Level: Powered On

Countdown Timer

Is it possible to have the timer display the # of hours, minutes, seconds until it gets to 0?

 

For example, if an event starts 24hrs from now, I want users to log into the app and see a counter counting down from 24:00:00 hours. As the log into the app periodically, the time should still be counting down until 00:00:00.

 

If this is possible

1 ACCEPTED SOLUTION

Accepted Solutions
mr-dang
Level 10

Re: Countdown Timer

Hi,

You would modify the Text property of the Timer to change what it displays. Timers have a Value and a Duration property. If you make the total duration subtract the current time value, you have your countdown:

 

Original:

 

Text(Time(0, 0, Timer1.Value/1000), "hh:mm:ss")

 

Countdown:

 

Text(Time(0, 0, (Timer1.Duration-Timer1.Value)/1000), "hh:mm:ss")
Microsoft Employee
@8bitclassroom

View solution in original post

1 REPLY 1
mr-dang
Level 10

Re: Countdown Timer

Hi,

You would modify the Text property of the Timer to change what it displays. Timers have a Value and a Duration property. If you make the total duration subtract the current time value, you have your countdown:

 

Original:

 

Text(Time(0, 0, Timer1.Value/1000), "hh:mm:ss")

 

Countdown:

 

Text(Time(0, 0, (Timer1.Duration-Timer1.Value)/1000), "hh:mm:ss")
Microsoft Employee
@8bitclassroom

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,283)