cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ezequiel
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

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 Kudoed Authors (Last 30 Days)
Users online (6,008)