web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to create a clock ...
Power Apps
Answered

How to create a clock in Powerapps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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 

Categories:
  • Verified answer
    Brian Dang Profile Picture
    3,976 on at

    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.

    ____

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

     

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

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I set the duration to 1000 and it worked.

  • hughrmarks Profile Picture
    122 on at

    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.

  • Brian Dang Profile Picture
    3,976 on at

    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

    _

     

     

  • hughrmarks Profile Picture
    122 on at

    Mr. Dang,

     

    That was perfect.   Exactly what I needed.

    Thanks so much for sharing.  

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Timer:

      Duration = 500

      Repeat = True

      Auto start = True

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

    Label:

      Text = IsTime

     

    All works.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard