
Announcements
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.
my selected date is in a DatePicker.SelectedDate control
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)