I have date as string in the format 16 Oct 2015 12:05:29:000 and I have it in DateString variable.
I am using the following line of code to convert it into date format.
Dim FormattedDate As Date = Date.ParseExact(DateString, "dd mmm yyyy HH:mm:ss.FFF", System.Globalization.CultureInfo.InvariantCulture)
I am getting the following error. String was not recognized as a valid DateTime
what am I doing wrong?