Hi,
Quick question: I'm trying to parse dates in the following format to their equivalent DateTime data type, but for some reason it's failing.
The string format is: 28/May/2009:17:43:04 +0000
Or: dd/MMM/yyyy:hh:mm:ss zz00
Here's the code I'm using:
Dim provider As New CultureInfo("en-US")
Dim d As DateTime = DateTime.ParseExact(value, "dd/MMM/yyyy:hh:mm:ss zz00", provider)
But, that produces a FormatException.
FYI: I've also tried using the InvariantCulture for the provider parameter of ParseExact, to no avail.
Any pointers would be greatly appreciated; it's Friday and my brain has gone to sleep! :)
Thanks!