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 : xEcO0W29TcXfFlAbcJWvGe
Power Automate - Building Flows
Answered

Calculate the week number of current date within a month

Like (0) ShareShare
ReportReport
Posted on 15 Nov 2021 14:48:03 by

Hi All,

 

Is it possible to calculate the current week number within a month? I know that 

add(div(dayOfYear(utcNow()),7),1) returns the week number within a year. What I want to know is how to return the week number within the month. For instance todays date 15th november should return Weeknumber = 2 since it is the second week of november.
Please let me know if there is a solution to get this.
 
Thanks
  • Community Power Platform Member Profile Picture
    on 17 Nov 2021 at 11:18:25
    Re: Calculate the week number of current date within a month

    This worked. Thankyou!

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on 16 Nov 2021 at 09:53:33
    Re: Calculate the week number of current date within a month

    Hi @Anonymous,

    Do you want to get the week number of today?

     

    You just need to modify your formula as below:

    add(div(dayOfMonth(utcNow()),7),1)

    vqiaqimsft_0-1637056379782.png

     

  • mahoneypat Profile Picture
    1,720 on 15 Nov 2021 at 22:25:58
    Re: Calculate the week number of current date within a month

    Please try this expression

     

    formatNumber(div(dayOfMonth(utcNow()),7), '0')
     
    Pat

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete