cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Haufe
Helper II
Helper II

Compare full date in Excel

Hi,

 

Please, I need compare full date in Excel with the actual full date (Date + Hour), but when I try, don't work, because the date in Excel is a number, and the expression addDays('1899-12-30',int(item()['Date']),'yyyy-MM-dd') doesn't work in this case, because I'm using hour too, not only the date.

 

For example:

Date in Excel: 10/11/2019 14:00. I need to know if it is before or after now.

 

Thank you!

 

Best regards,

5 REPLIES 5
ScottShearer
Super User III
Super User III

@Haufe 

Here are two possible solution to your issue:

Solution 1

Solution 2

 

 

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

Scott

Hi  ,

 

Thank for the asnwer but doesn't work, because I have hours also in the date, then when I will convert to int shows an error, because the number that come of the Excel is for example 4365.219139, so can't to convert to int because is a float. 

 

Best regards,

 

v-alzhan-msft
Community Support
Community Support

Hi @Haufe ,

 

If the number that come of the Excel is a float type data, you could consider converting the current time to a float type data, and compare the float type data of current time with the float type data of excel time.

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi  

 

 

 

Haufe
Helper II
Helper II

Hi,

 

Could someone help me with the question?

 

Thank you 🙂 

 

Best regards,

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,194)