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
RezaDorrani
Level 10

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

 
1 REPLY 1
RezaDorrani
Level 10

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

 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 218 members 4,147 guests
Please welcome our newest community members: