I’m having this error: “If: The DateTime represented by the string is not supported in calendar System.Globalization.GregorianCalendar” in the condition of my if statement which has this code: DateTime.ParseExact(var_currentDeadlineConsultant.ToString.Substring(0,10),“MM/dd/yyyy”,CultureInfo.InvariantCulture)<system.DateTime.Today.AddDays(25)
The “var_currentDeadlineConsultant” is a generic value which derived a date from a datatable field.
No need to invest your time. I solved it in the meantime.
My excel format was dd/MM/yyyy but in the background it switched to MM/dd/yyyy while writing a line in uipath