How to remove / from date in uipath

Input : 12/16/2020
Output : 12 16 2020


got the answer using Convert.ToDateTime(date).ToString(“MM dd yyyy”)

Hi @Jelrey

U can try this way too

DateTime.ParseExact(input,“MM/dd/yyyy”, System.Globalization.CultureInfo.InvariantCulture).ToString(“MM dd yyyy”)


Nived N :robot:

Happy Automation :relaxed::relaxed::relaxed:

Assign: String was not recognized as a valid DateTime.

Can u check whether the input date is in format of MM/dd/yyyy?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.