I my application I need to convert a string in the datetime format as below:
var k= DateTime.Parse("20150129163809");
But its throwing up an error message that "String was not recognized as a valid DateTime."
But, when I do
DateTime.Parse("2015-01-29 16:38:09")
its working fine...
What could be wrong?