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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

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

Leaderboard > Power Automate - Building Flows

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 196 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 165

Overall leaderboard
Loading started
Loading started