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 / Creating a label based...
Power Apps
Unanswered

Creating a label based on week number that refreshes every second

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi!

 

How do i create a text label that shows the week number that refreshes every second so it keeps the content up to date when a new week arrives? Thank you!

 

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    Hi @Anonymous ,

    1. On the OnStart of your app, enter

     

    Set( varCurrentTime, Now() )

     

     

    2. Add a Timer control

    3. Set the AutoStart property of the Timer control to True

    4. On the OnTimerEnd property of the Timer control, enter:

     

    Set( varCurrentTime, Now() )

     



    5. Set your label to:

     

    WeekNum(varCurrentTime)

     

     

    ------------------------------------------------------------------------------------------------------------------------------

     

     If I have answered your question, please mark your post as Solved.

    If you like my response, please give it a Thumbs Up.

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard