cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

Re: Best way to compare two dates

 

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
Highlighted
Post Prodigy
Post Prodigy

Re: Best way to compare two dates

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

Highlighted
Community Support
Community Support

Re: Best way to compare two dates

 

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (7,482)