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 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
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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,430)