cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft ezequiel
Microsoft

Transform date-time into date only

Hi,

 

I'm evaluating a field in from an entity in Dynamics that returns the date and time and I need to compare that only to 'today' (without the time). Is it possible on the IF condition in flow to transform the field to only date? I assume that it should be something like formatDateTime(FIELDNAME,'yyyy-MM-dd'), but I'm not quite sure how to implement it.

 

Thanks,

 

Ezequiel

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Transform date-time into date only

Hi @ezequiel 

 

Use an If condition

 

formatDateTime(FIELDNAME,'yyyy-MM-dd')
 
and compare it to 
formatDateTime(utcNow(),'yyyy-MM-dd')
 

Regards,

Reza Dorrani

 

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

1 REPLY 1
Dual Super User
Dual Super User

Re: Transform date-time into date only

Hi @ezequiel 

 

Use an If condition

 

formatDateTime(FIELDNAME,'yyyy-MM-dd')
 
and compare it to 
formatDateTime(utcNow(),'yyyy-MM-dd')
 

Regards,

Reza Dorrani

 

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
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,158)