I have an Excel document that has dates listed in cells as “January 1, 2020” where the month is written in English as a string value.
Question: Is there a way to parse this string into a Date type in the format “MM/dd/yyyy” without having to split the string and do any major manipulation? Preferably I am hoping something like the below would be possible.
Hi
Once after getting the datatable from excel with READ RANGE activity and a datatable named dt pass that as input to FOR EACH ROW activity
Inside that loop use a first assign activity like this with expression
Then use a assign activity for DateTime parsing
Like this row(“yourcolumnname”) = DateTime.ParseExact(str_input.ToString,“MMMM dd, yyyy”,System.Globalization.CultureInfo.InvariantCulture)
The reason for the first assign activity is sometimes it may come as
January 1, 2020
Or
January 12, 2020