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

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

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (7,027)