Showing results for 
Search instead for 
Did you mean: 
Advocate I
Advocate I

Convert date to week -Year starts week of Jan 1st

I have been struggling for a few days now trying to adapt the solution in this post Convert Date to Week Number (number format) ( to fit my use case. My company starts the year the week of January 1st, meaning that what the rest of the world seems to have as week 53 of 2020, for us is week 01 of 2021. Truly appreciate if someone can please help me with this. 

Community Champion
Community Champion

What do you need to do with the week number? I am just trying to understand where you need to see it and how it will need to be used and updated. 


This gives you the current week number:



And if it is just for a label you could just subtract 1 from it or something like that but it really depends on what you you are doing with it.

Thank you for your response. Substracting 1 will not necessarily solve the problem as it gives me week 52 of 2020 instead of week 01 of 2021. 

As for the use case, it's a display of a selected date as in the picture attached -pls keep in mind that the picture has the wrong week for my use case (displays 20WW53 when it should be 21WW01). 

Helpful resources

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,370)