cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pradeep17
New Member

Best way to compare two dates

Hi All,

I m in the middle of creating a work flow using power automate as follows.

Can someone please tell me is this the best way to compare (condition 4 on my screen shot) two dates in power automate.

Much appreciate your help, sorry bit urgent  

Pradeep17_0-1596624903853.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @Pradeep17 ,

 

It is recommended that you can use the formatDateTime() function to format the date into a format such as 'yyyy-MM-dd' for future comparison of dates.

Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs

Please take a try and feel free to let us know if you have any other questions.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
PrasadAthalye
Super User
Super User

You can use formatDateTime() function and format it to a standard format like 'MM/dd/yyyy'

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community
v-bacao-msft
Community Support
Community Support

 

Hi @Pradeep17 ,

 

It is recommended that you can use the formatDateTime() function to format the date into a format such as 'yyyy-MM-dd' for future comparison of dates.

Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs

Please take a try and feel free to let us know if you have any other questions.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (3,841)