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 / Realtime Date Time dis...
Power Apps
Answered

Realtime Date Time display in Text Box

(0) ShareShare
ReportReport
Posted on by 192

It is probably obvious, but I haven't found the simplest way to continuously update Date and Time in a Text Box.

ThisItem.Text=Now()  Is static and doesn't refresh (which I think is normal)

Using a timer and setting the Text property of a Text Box to Timer.Value works, the Text Box gets updated,  I tried using a timer with the OnTimerEnd Event, but didn't find a way to use it to update the Text Property of a Text Box.

The only idea I have is not very satisfying: use a concatenation of the Now() result and Timer.Value for the seconds, which is a bad hack.

Thanks for the help.

 

 

 

 

Categories:
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi Olivier,

     

    About this issue, using a Timer control would be a good choice. I added a TextBox control and a Timer control in my App.
    >About Timer control, I set its AutoStart and Repeat property to True, Duration property to 60000, OnTimeEnd property to UpdateContext({textbox1:Text(Now(),"dd/mm/yy hh:mm:ss")}).
    >About TextBox control, I set its Text property to textbox1.

     

    This works well for me, when the Timer ends, the Date and Time would be refreshed in the TextBox control. As a workaround, please try if this works for you.

     

    Best regards,
    Mabel Mao

  • Olivier Profile Picture
    192 on at

    Thank you Mabel,

    I didn't try it yet, but I am sure it works!  I didn't know you could use UpdateContext() on a control's property, so thanks for that.

    I will use this every second rather than every minute just so the time difference between actual time and displayed time is a max of one second.

  • Olivier Profile Picture
    192 on at

    Hi again Mabel,

     

    It works!

    Thanks,

     

    Olivier

  • Olivier Profile Picture
    192 on at

    Hi again Mabel,

     

     

    It works, thanks.

    Olivier

  • Azalia20 Profile Picture
    34 on at

    How to create realtime date and time on power apps that always repeat at 00.00 everyday?
    it isn't only for calculating the display time but to show Now() in realtime ticking seconds...

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 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard