Date comparison in uipath

Anyone know how can I have a if else statements that’s compare dates??

Such as If date1 is less than date2 then proceeded normal flow else would be reject the comparison.

you can use like below

if date1 < date2 then

DateTime date1 = DateTime.Now
DateTime date2 = DateTime.Now.AddDays(1)

You can do this as in the screenshot :slight_smile:


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