cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft
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
Highlighted
Dual Super User II
Dual Super User II

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
Highlighted
Dual Super User II
Dual Super User II

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
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,643)