cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marvalar
Frequent Visitor

Compare dates

Hi everyone!!!


Very basic question. I'm trying to compare a date coming from an excel file to 1st of January 2020.

Capture.PNG

In excel the cell is formated as dd/mm/yyyy, I suppose I need to define the date "01/01/2020" in another way...

 

Thanks a lot for your support

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @marvalar ,

 

If the format of the Date field is also dd/MM/yyyy, then "01/01/2020" can be used for comparison.

 

Please run Flow once, then check the Body of List row present in table action and check if the value output by Date field is number or date format value.

 

If it is number, then you can refer to the following method to convert the Date field to Date format and then compare.

https://powerusers.microsoft.com/t5/Building-Flows/Excel-file-to-list-flow-date-issue/m-p/279258#M28...

 

If it is not a number, but a value in the format dd/MM/yyyy, then your current configuration is valid.

 

Best Regards,

Community Support Team _ Barry
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

2 REPLIES 2
ScottShearer
Super User
Super User

@marvalar 

Excel stores dates as integers and you need to do some work in order to use them in Power Automate.  While the dates appear as dates in Excel, the data is actually an integer that represent the number of days since 1/1/1900.

Here is a link to a post with an explanation of how to handle dates from Excel.

 

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
v-bacao-msft
Community Support
Community Support

 

Hi @marvalar ,

 

If the format of the Date field is also dd/MM/yyyy, then "01/01/2020" can be used for comparison.

 

Please run Flow once, then check the Body of List row present in table action and check if the value output by Date field is number or date format value.

 

If it is number, then you can refer to the following method to convert the Date field to Date format and then compare.

https://powerusers.microsoft.com/t5/Building-Flows/Excel-file-to-list-flow-date-issue/m-p/279258#M28...

 

If it is not a number, but a value in the format dd/MM/yyyy, then your current configuration is valid.

 

Best Regards,

Community Support Team _ Barry
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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors
Users online (1,550)