web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to set a due date ...
Power Automate
Unanswered

How to set a due date for the last day of the month (regardless of how many days in the month)

(0) ShareShare
ReportReport
Posted on by 4

I'm very new to Power Automate so I'm hoping this is going to be pretty simple to answer.  I have several flows setup that create tasks in Planner and assign an appropriate due date.  Some of these tasks need to be generated in planner at the start of each month and assigned a due date of the last day of the month.  

 

I know how to set the due date for (for example) 30 days from the start of the month but obviously that doesn't really help. 

 

Appreciate some help please.

Categories:
I have the same question (0)
  • alaabitar Profile Picture
    1,503 Super User 2024 Season 1 on at

    Hello,

     

    You can leverage the startofamonth function and then substract one day so that you get the last day of the previous month, somehting like that

    addDays(startOfMonth('NextMonth'),-1,'MM-dd-yyyy')

     

    Best regards,

    Alaa

  • Hazzer Profile Picture
    4 on at

    That's great, thanks for your help. 

    Hazzer

  • Hazzer Profile Picture
    4 on at

    Hello

     

    The above worked for me when I set this up and tested it last month but now it's failed....

     

    Hazzer_0-1644417627683.png

    Any ideas why please?

     

    Thanks

     

     

  • jgoldstein3 Profile Picture
    26 on at

    The below expression worked for me to get that day of the month!

     

    addDays(addToTime(startOfMonth(utcnow()),1,'Month'),-1,'yyyy-MM-dd')

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard