Skip to main content

Notifications

Community site session details
Power Automate - Building Flows
Answered

Get the date (YYYY-MM-DD) for the first monday of the month

Like (0) ShareShare
ReportReport
Posted on 31 Oct 2023 11:02:11 by 25

Hey!

I'm trying to create a simple rule that will give me the date of the next "first Monday of the month" in the format YYYY-MM-DD, I've tried a number of different strings but can't get it to work...

Any suggestions? 🙏😊

  • rhagglund Profile Picture
    25 on 31 Oct 2023 at 12:52:10
    Re: Get the date (YYYY-MM-DD) for the first monday of the month

    Yes, it seems to work, thank you! 🙂

    NO my next problem is that it is in english and not in swedish.... 😬

  • Verified answer
    grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on 31 Oct 2023 at 12:36:27
    Re: Get the date (YYYY-MM-DD) for the first monday of the month

    I'm sure someone on this forum has a more streamlined solution, but this seems to work. You can specify whatever format you like - I just used 'dddd dd MM yyyy' so it showed the actual day Monday.

     

    addDays(
     startOfMonth(addToTime(utcNow(), 1, 'Month')), 
     mod(sub(8, mod(dayOfWeek(startOfMonth(addToTime(utcNow(), 1, 'Month'))), 7)), 7), 
     'dddd dd MMM yyyy'
    )
  • rhagglund Profile Picture
    25 on 31 Oct 2023 at 12:34:02
    Re: Get the date (YYYY-MM-DD) for the first monday of the month

    Yes, my bad....

    I mean the first monday of next month 🙂

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on 31 Oct 2023 at 12:26:26
    Re: Get the date (YYYY-MM-DD) for the first monday of the month

    Did you mean the first Monday of next Month?

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard
Loading started
Loading started