Date conversion not working

Hi

Welcome to UiPath forum

You are almost done

If the input variable of string named strinput is of this format

Then use a assign activity like this

stroutput = DateTime.ParseExact(strinput.ToString.SubString(0,10).ToString.Trim, “yyyy-MM-dd”, System.Globalization.CultureInfo.InvariantCulture).ToString(“MM/dd/yyyy”)

Cheers @Rilna_Rilna

1 Like