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 / Issue comparing dates ...
Power Automate
Unanswered

Issue comparing dates in flow

(0) ShareShare
ReportReport
Posted on by

What I am wanting to do is compare the ConvertedTermDate to the formatDateTime function. If the dates are the same I want it to delete the current item and create it in a different list and then delete that item.The function is formatDateTime(utcNow(), 'mm/dd/yyyy'). Both dates are in the same format. Any help would be greatly appreciated.

 

https://imgur.com/4hljSvJ

 

Categories:
  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @ knewman0303,

     

    Could you please share more details about the "ConvertedTermDate" that you mentioned? Is it a date type column in a sharepoint list(A)?

    Do you want to compare the ConvertedTermDate with the current date and if the ConvertedTermDate is equal to today's date, then delete the item in the sharepoint list (A) and create the item in the sharepoint list (B)?

    Would you trigger the flow when an item is created in the sharepoint list (A)?

     

    If all my guess are right, you could refer to screenshot below to create the flow:

    1.png

     

    The expression in the condition as screenshot below:

    @equals(formatDateTime(triggerBody()?['ConvertedTermDate'], 'MM/dd/yyyy'), formatDateTime(utcNow(), 'MM/dd/yyyy'))

     

     

     When a item is created in the listA, and the date of the ConvertedTermDate column is equal to today's date, the flow would run successfully as below:

    Capture.PNG

     

     

    Regards,
    Alice Zhang

  • anhthuch4ng Profile Picture
    Microsoft Employee on at

    Hi @knewman0303,

     

    Have you had a chance to apply @v-yuazh-msft's suggestions to your Flow described above?

    If yes and you found that solution to be satisfactory, please go ahead and mark @v-yuazh-msft's reply as the "Accepted Solution". 🙂


    Happy Flowing,

    -AT (Flow Community Admin)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard