Hi guys,
I need your help here please.
I have an excel table with date entries in the form 03.08.2020 16:22.
This is the German format (dd:MM:yyyy hh:mm)
In excel I formatted the field into user-defined as TT.MM.JJJJ hh:mm which is the same as above in German.
The problem is that UIPath switches date and month, which leads to errors like this one:
Get Row Item of the column Process Start Date: 16.09.2020 08:00 is not a valid value for DateTime.
Does anyone know how I can solve this?
Thank you very much!
That already helped, now I know how to get the date from the excel table without getting an error.
However, my plan was to convert the string into DateTime so that I can check whether the date is lower than today.
To get the entry of the table I used assign (1):
deliveryDateStr = row(“NON Committed Delivery Date”).ToString
Then I used another assign activity (2):
deliveryDateStr = convert.ToDateTime(deliveryDateStr).ToString(“dd.MM.yyyy hh:mm”)
After that I wanted to change the variable from String to DateTime (3):
deliveryDateDt = Convert.ToDateTime(deliveryDateStr)
The problem is that I still get an error for the second assign activity when I have a day that is bigger than 12. It is still the error “not a valid value for DateTime”
Hey
Thank you very much for your effort!
Unfortunately, I still get an error:
Assign: Conversion from string “28.12.2020 18:00” to type ‘Date’ is not valid.