SyntaxFix
Write A Post
Hire A Developer
Questions
As an alternative, if you put a space between the date and time, DateTime.Parse will recognize the format for you. That's about as simple as you can get it. (If ParseExact was still not being recognized)
DateTime.Parse
ParseExact