so i have an excel file which is implemented in UiPath as a datatable.
From this datatable I use for each activity to calculate for each row the difference of days of two columns.
So I got column one (“Lieferdatum”) and column two (“Umterminierungsdatum”). Both of them are type Date in Excel.
I know want to calculate the difference of days for these two columns.
You can use the below code to calculate the difference in days between the two dates.
Cdate function is use to convert string into date variable.
I am assuming date format in excel cell is ‘dd-MM-yyyy’
int_days is an integer variable to store number of days.
int_numOfDays= DateDiff(DateInterval.Day, DateVar1, DateVar2)