Is it possible to compare Date and Time?

Hi everyone,

I was wondering if I could compare two objects which are different date/time formats.
The first object(dateTimeFromList) is a little weird(screenshot)
t1
Second object is of string type, compareDate = "01/01/1900 01:01:01"

I need to compare those two objects with the following expression in If activity:
Date.Compare(CDate(compareDate), CDate(dateTimeFromList)) < 0

Is that even possible? This is not my code and I can’t figure out how comparing those two objects are even possible.
And why one would do something like that?

Thanks in advance?

go for CDate and TimeInfo instead:

grafik

1 Like

Great answer, thanks!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.