How can I convert a date like September 16, 2019 to 09/16/2019 I can only find things that convert from one number format to another number format.
3 Likes
It has many ways to do that.
Convert.ToDateTime(str1).ToShortDateString
I hope this information will be useful to you
1 Like
Fine
We got options like these
If str_input = “September 16, 2019”
Then
Option 1
Str_output = DateTime.ParseExact(str_input,”MMMM dd,yyyy”,System.Globalization.CultureInfo.InvariantCulture).ToString(“MM/dd/yyyy”)
Option 2
Str_output = Convert.ToDatetime(str_input).Tostring(“MM/dd/yyyy”)
Option
Str_output = Convert.Todatetime(str_input).ToshortDatestring
Cheers @Keithm
2 Likes
These days, you can also simply use some new activities:
Here’s Studio Web where you can import the project below and test it yourself with just a few clicks directly in your browser:
Convert the date string to another format.uip (2.8 KB)