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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Refresh Now() in a lab...
Power Apps
Unanswered

Refresh Now() in a label with timer

(0) ShareShare
ReportReport
Posted on by 97

I have a one screen app with a gallery displaying on a tv screen and a timer set to refresh the data every hour.  I've been asked to show date/time of the last refresh.

 

I've added a label with the text : "Last Refresh: " & Now()

 

Can someone advise how I can refresh the text in the label using the existing timer that refreshes my datasource?

 

Many thanks

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,678 Most Valuable Professional on at
    Re: Refresh Now() in a label with timer

    Instead of using Now() in the label set the label to use the value of a variable.  Then in the timerEnd property of the timer set the value of that variable to a formatted time string using Now().  That will automatically update the label.

  • sanderson82 Profile Picture
    97 on at
    Re: Refresh Now() in a label with timer

    Thanks @Pstork1  I have attempted this but still no joy.

     

    Screen1 OnVisible: Set(RTime,Text( Now(), "[$-en-GB]mm/dd/yyyy hh:mm" ))

     

    Label: "Last Refresh: " & Text(RTime)

     

    OnTimerEnd: Set(RTime,Text( Now(), "[$-en-GB]mm/dd/yyyy hh:mm" ))

  • Verified answer
    Pstork1 Profile Picture
    68,678 Most Valuable Professional on at
    Re: Refresh Now() in a label with timer

    Try the following instead.

    Set OnStart for the app instead of Screen onVisible to 

    set(RTime, Now())

    Set the Label to 

    Concatenate("last refreshed: ",Text(RTime,"[$-en-GB]mm/dd/yyyy hh:mm" ))

     Set the timerEnd  to

    set(RTime, Now())

    Make sure timer is set to AutoStart

  • sanderson82 Profile Picture
    97 on at
    Re: Refresh Now() in a label with timer

    @Pstork1  thank you!  Working perfectly now

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard