I know that C# has some great date conversion tools. What I’m I’m wondering is if I can automatically convert this string to a date object:
"Fri May 11 00:00:00 EDT 2012"
I’m thinking I’ll have to manually parse the month, day, and year but I’m hoping there is an easier way built-in. Any help would be appreciated.
Thanks!
You can use
DateTime.ParseExactorDateTime.TryPraseExactto provide a custom format:All of the format options are listed on the Custom Date and Time Format Strings page on MSDN.