How to convert Oct 14, 2024 to 10/14/2024 with Parse Date
Datetime.ParseExact(“Oct 14, 2024”,“MM, dd, yyyy”,System.Globalization.CultureInfo.InvariantCulture)
![]()
How to convert Oct 14, 2024 to 10/14/2024 with Parse Date
Datetime.ParseExact(“Oct 14, 2024”,“MM, dd, yyyy”,System.Globalization.CultureInfo.InvariantCulture)
![]()
Hi, @Destiny_Malone
Fallow the steps below. If I helped you, please market it solved.
To convert a date with the abbreviated month to MM/dd/yyyy format in UiPath, use the following code:
DateTime.ParseExact(“Oct 14, 2024”, “MMM dd, yyyy”, System.Globalization.CultureInfo.InvariantCulture).ToString(“MM/dd/yyyy”)
This converts the string “Oct 14, 2024” to “10/14/2024”.
Try this way,
Str variable = DateTime.ParseExact("Yourinput",{"MMM dd, yyyy"},System.Globalization.CultureInfo.InvariantCulture,System.Globalization.DateTimeStyles.None).ToString("MM/dd/yyyy")
If you have more input format means you can add in the array
Regards,
Gowtham K
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.