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 / 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

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