Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Issue comparing dates in flow

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.


Community Support
Community Support

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:



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:




Alice Zhang

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)

Helpful resources

Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,388)