Work with Dates


Hi all,

i am trying to figure out how to work with date’s

i got the date from sap that is written like 22.07.2017
i am trying to put this in uipath variabel as a Date… but i cant get it to work.

can somebody tell me how to change a string to date?



Hi @amo
You can use DateTime.ParseExact(stringDate, formatDate,Nothing) where stringDate = “22.07.2017” and formatDate = “dd.MM.yyyy”



You can use Convert.ToDateTime(stringDate)


Thanks susana,

that works fine!