C
campbell.mcneill
Hi,
I'm trying to parse the following date "Wed, 18 Dec 2002 08:01:23 +0100
(MET)".
I'm using the following code:
System.IFormatProvider format = new
System.Globalization.CultureInfo("sv-SE", true);
parsedDate = DateTime.ParseExact("Wed, 18 Dec 2002 08:01:23 +0100
(MET)", "dd MMM yyyy hh:mm:ss", format,
System.Globalization.DateTimeStyles.AllowWhiteSpaces);
But this leads to errors.
Anyone have any idea how I can parse this date without having to mash
the string up too much?
Thanks,
Campbell
I'm trying to parse the following date "Wed, 18 Dec 2002 08:01:23 +0100
(MET)".
I'm using the following code:
System.IFormatProvider format = new
System.Globalization.CultureInfo("sv-SE", true);
parsedDate = DateTime.ParseExact("Wed, 18 Dec 2002 08:01:23 +0100
(MET)", "dd MMM yyyy hh:mm:ss", format,
System.Globalization.DateTimeStyles.AllowWhiteSpaces);
But this leads to errors.
Anyone have any idea how I can parse this date without having to mash
the string up too much?
Thanks,
Campbell