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 Automate / Calculate the week num...
Power Automate
Unanswered

Calculate the week number of current date within a month

(0) ShareShare
ReportReport
Posted on 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
Categories:
I have the same question (0)
  • mahoneypat Profile Picture
    1,720 on at

    Please try this expression

     

    formatNumber(div(dayOfMonth(utcNow()),7), '0')
     
    Pat
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    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

     

  • Community Power Platform Member Profile Picture
    on at

    This worked. Thankyou!

     

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard