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 / expiry date should equ...
Power Automate
Answered

expiry date should equal: minus 30 days formula (todaysdate - 30 days?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Good day,

 

i have a List with and Expiry Date Column and i need a Notification email to be sent 30 days prior the Expiry date.

 

What should the formula look like? @equals(substring(item()?['Expiry Date'], 0, 10), utcnow('yyyy-MM-dd'))

 

Where should the minus 30 days be added?

 

many thanks

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    The formula that you provide above could not be able to achieve your needs. 

    Please take a try with the following formula:

     

    @equals(formatDateTime(utcNow(), 'MM/dd/yyyy'), formatDateTime(addDays(item()?['Expiry_x0020_Date'], -30), 'MM/dd/yyyy'))

     

     

    More details about the usage of formatDateTime() function and addDays() function, please read the article as below:

    https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

     

    Best regards,

    Kris

  • 421 Profile Picture
    4 on at

    Hello @v-xida-msft ,

    May you please help me with something similar? I'm new to flow and I have a SP list with column for date 'Due Date'. I want to send the notification with flow to the person in charge 3 days before the 'Due Date'. I could get the recipients e-mails from other column in the list - 'AssignedTo', no problem with that. I begin the flow with recurrence(I will set it to run one time a day), than I want to use the 'Filter query' in Get items, but I'm not exactly sure how could I achieve the right filter with adddays.

     

    I will be very grateful, if you could help me with that. 

     

    Kind Regards

     

  • 421 Profile Picture
    4 on at

    Hello @v-xida-msft ,

     

    I managed to do the job, please don't take my questions in consideration. 

     

    Kind Regards

    Boyan

  • Share-and-Flow Profile Picture
    32 on at

    hi @421 

    I am here looking for a similar solution.

    My reminders will be sent 60,30 and 15 days before expiry date.

    How did you do it?

     

    Thanks

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 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard