Created
December 1, 2015 23:22
-
-
Save jongio/ed6aa9811e611e0a645e to your computer and use it in GitHub Desktop.
Twitter Date Parsing with C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DateTimeOffset.ParseExact("Tue Dec 01 22:35:28 +0000 2015", "ddd MMM dd HH:mm:ss zzz yyyy", CultureInfo.InvariantCulture); | |
DateTime.ParseExact("Tue Dec 01 22:35:28 +0000 2015", "ddd MMM dd HH:mm:ss K yyyy", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment