Skip to main content

Notifications

Power Automate - General Discussion
Answered

Get all date for the week of the selected month

(0) ShareShare
ReportReport
Posted on by 115

Hi, 
Any way to get all dates for the week of the selected month?

For example. I would like to know all the date for week 1 in February?

Categories:
  • Re: Get all date for the week of the selected month

    Hi @pityman ,

     

    There is no such an OOB weeknum function in power automate. But you can get weeknum by dividing dayOfYear by 7.

     

    Best Regards,

    Bof

  • pityman Profile Picture
    pityman 115 on at
    Re: Get all date for the week of the selected month

    Brilliant!! Can i know if we can filter by no. of week as well? for example we only get the dates for week 1 

  • Verified answer
    Re: Get all date for the week of the selected month

    Hi @pityman ,

     

    I've made a test for your reference:

    My flow:

    vbofengmsft_0-1664441815963.png

    1\

    dayOfWeek(last(variables('DataArray'))['Date'])
    2\
    addDays(last(variables('DataArray'))['Date'],1)
     

    Result:

    vbofengmsft_1-1664441875833.png

     

    Best Regards,

    Bof

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard