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 Apps - Building Power Apps
Answered

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

I have the same question (0)
  • Pstork1 Profile Picture
    68,271 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,271 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 686 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 433 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 266 Moderator

Last 30 days Overall leaderboard