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

@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
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

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
Top Kudoed Authors
Users online (8,004)