cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

How to create a clock in Powerapps

Hi All,

 

I'd like to create a clock in powerapps but have been unable to so far.

 

I've added a timer set the Autostart to True and Repeat to True

 

I've set the Ontimer End to 

 

UpdateContext({textbox1:Text(Now(),"[$-en-US]dd/mm/yy hh:mm:ss")})

 

I've set the Text in the textbox I created to textbox1

 

The timer counts down as expected but the Textbox remains empty.

 

Any ideas would be awesome

 

Thanks in advance

 

Dave 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion
Community Champion

Re: How to create a clock in Powerapps

Hi,

I just tried this as well. 

 

I did not see the timer counting nor my textbox1 variable changing until I pressed the play button to preview the app.

 

I also recommend setting the Start property of the Timer to true and duration to 1000 and see if that helps.

 

Let me know if this works.

____

Microsoft Employee
@8bitclassroom

View solution in original post

7 REPLIES 7
Highlighted
Community Champion
Community Champion

Re: How to create a clock in Powerapps

Hi,

I just tried this as well. 

 

I did not see the timer counting nor my textbox1 variable changing until I pressed the play button to preview the app.

 

I also recommend setting the Start property of the Timer to true and duration to 1000 and see if that helps.

 

Let me know if this works.

____

Microsoft Employee
@8bitclassroom

View solution in original post

Highlighted
Helper II
Helper II

Re: How to create a clock in Powerapps

Hi,

 

I set the Start Property of the timer to True and still no luck.

 

 

Highlighted
Helper II
Helper II

Re: How to create a clock in Powerapps

I set the duration to 1000 and it worked.

Highlighted
Helper IV
Helper IV

Re: How to create a clock in Powerapps

I have searched for this for quite awhile.   As a newbie to PowerApps, I'm just starting to figure this stuff out.   To get the countdown timer built, do you use a Text Input and add your UpdateContext formula?   What variable are you editing?   In other words, what are you selecting with the dropdown in the upper right of the page?   Default=?  Text=?   Sorry for the elementary questions but it's all new to me.

Highlighted
Community Champion
Community Champion

Re: How to create a clock in Powerapps

Hi @hughrmarks,

If I understand correctly, you'd like to create a countdown timer. You won't need any variables or formulas for this. It's just a matter of changing the text on your timer to show a countdown.

 

Here's the same solution that I provided another user (with more of an explanation):

https://powerusers.microsoft.com/t5/General-Discussion/Countdown-Timer/m-p/34897#M14365

 

Here's a video of the same process (I am not in a good environment for recording audio right now):

https://1drv.ms/v/s!AvtvG5BA8E3vj6c80GmYxa0_FsirWQ

(Let me know if the link does not work)

 

Let me know if this helps

 

Mr. Dang

_

 

 

Microsoft Employee
@8bitclassroom
Highlighted
Helper IV
Helper IV

Re: How to create a clock in Powerapps

Mr. Dang,

 

That was perfect.   Exactly what I needed.

Thanks so much for sharing.  

Highlighted
Frequent Visitor

Re: How to create a clock in Powerapps

Timer:

  Duration = 500

  Repeat = True

  Auto start = True

  OnTimerEnd = Set(IsTime, Text(Now(),LongTime24))

Label:

  Text = IsTime

 

All works.

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,908)