I have that strange problem from couple of days. When I read/write in UIPath Studio xls to xlsx, the columns with dates swap the dd with MM when dd is <= 12. If it is above 12 it keeps the format I want dd/MM/yyyy.
Have you ever encountered that problem? And how did you fix it.
if im not wrong your system date is in MM/dd/yyyy format change it to dd/MM/yyyy then it will work.
if did not then try this DateTime.ParseExact(Date_String,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture)
if still facing problems you can post anytime.
now inside the excel application scope you must have used write cell activity
before using the write cell activity take an assign activity
coverted_Date = DateTime.ParseExact(row(“date_column_name”),“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture)(Note: the variable type of coverted_Date should be System.Datetime )
now use write cell activity and the value shoild be coverted_Date
Thanks for the guidance. I did everything you said, but it still says: "disallows implicit conversion from ‘Object’ to ‘String’. I think I am missing something fundamental.
@phoenixxx In Addition to the .ToString part, if you are sometimes getting dates in MM/dd/yyyy format and sometimes in dd/MM/yyyy format, you should provide both formats in a string array. So it’d be something like this: