Parsing an RFC822-Datetime in .NETMF 4.0

Posted by chris12892 on Stack Overflow See other posts from Stack Overflow or by chris12892
Published on 2010-06-06T20:03:41Z Indexed on 2010/06/06 20:32 UTC
Read the original article Hit count: 537

I have an application written in .NETMF that requires that I be able to parse an RFC822-Datetime.

Normally, this would be easy, but NETMF does not have a DateTime.parse() method, nor does it have some sort of a pattern matching implementation, so I'm pretty much stuck.

Any ideas?

EDIT: "Intelligent" solutions are probably needed. Part of the reason this is difficult is that the datetime in question has a tendency to have extra spaces in it (but only sometimes). A simple substring solution might work one day, but fail the next when the datetime has an extra space somewhere between the parts. I do not have control over the datetime, it is from the NOAA.

© Stack Overflow or respective owner

Related posts about c#

Related posts about datetime