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 check if curren...
Power Automate
Answered

How to check if current date is equal to an end date - 7 days?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Below is a snippet of my flow, the end date is a field from a sharepoint list, and I want to compare the current date to end date - 7 (Send out an email a week before the enddate). Please help me figure out how to do the -7 or if there is another method. 

 

I am aware of formatDateTime(addDays(utcNow(), -30)'MM/dd/yyyy') but I don't know how to apply that to a sharepoint field.

 

Shyan_0-1687975833968.png

 

Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @Anonymous 

     

    Pls try using the below expression inside 'Compose' action:

    formatDateTime(addDays(utcNow(), -7)'yyyy-MM-dd')

     subtracting 7 days to current date to get a week past date.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 816

#2
Valantis Profile Picture

Valantis 603

#3
Haque Profile Picture

Haque 566

Last 30 days Overall leaderboard