Skip to content

Instantly share code, notes, and snippets.

@jongio
Created December 1, 2015 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jongio/ed6aa9811e611e0a645e to your computer and use it in GitHub Desktop.
Save jongio/ed6aa9811e611e0a645e to your computer and use it in GitHub Desktop.
Twitter Date Parsing with C#
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