Calculations and comparing dates

datatypes

#1

Hi Team,

Can we do any calculations on the date ?

For ex: If the date is less than the system date add some months, etc.
Can this be done using uipath. :slight_smile:
Please help.


#2

Not sure what you mean by calculations. Create variable with type system.dateTime (browse types, search for dateTime)

Assign activity:
dateTime = dateTime.Now.AddYear(-3)

Similar for conditions.


#3

https://www.dotnetperls.com/datetime-vbnet