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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Position of the week
Power Apps
Unanswered

Position of the week

(0) ShareShare
ReportReport
Posted on by

Hello

How can I return the position of the week based on a date in Power Apps?
Consider Monday as the first day of the week.

 

jcnascime1_0-1707477594640.png

my selected date is in a DatePicker.SelectedDate control

Categories:
I have the same question (0)
  • Verified answer
    NPPlatform Profile Picture
    606 Moderator on at

    Hi, do you mean you want to know what day of the week a date is? You can use the Weekday()-function. See the documentation here: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-datetime-parts

     

    For example, say the current time is 3:59:37 PM on Thursday, April 9, 2015. The formula 

     

    Weekday( Now() ) 

     

    returns the weekday component of the current time and date, using the default start of the week as Sunday. The result then would be 5. If you want to change it so Monday is first day of the week you need to use the formula

     

    Weekday( Now(), StartOfWeek.Monday)

     

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard