How to Convert Twitter Timestamp to DateTime?

I've been googling this for some time now, but I could never find an answer to my problem.

I'm making a Twitter client using C# and Windows Presentation Foundation, and I can't figure out how to change the timestamps that Twitter supplies to a DateTime or UNIX timestamp.

I know it's possible with Regex, but I never found a solution.

Is there some easy way to do this that I'm unaware of? The Twitter timestamp format that I'm trying to convert from looks like this:

Fri Feb 11 23:45:15 +0000 2011

Any ideas?

9
задан sammarks 11 February 2011 в 23:54
поделиться