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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (6,205)