Skip to content

Instantly share code, notes, and snippets.

@solar
Created May 26, 2011 07:19
Show Gist options
  • Save solar/992703 to your computer and use it in GitHub Desktop.
Save solar/992703 to your computer and use it in GitHub Desktop.
Parse String to Date
SimpleDateFormat format = new SimpleDateFormat("E MMM d kk:mm:ss Z yyyy", Locale.US);
Date datetime = format.parse("Thu Jun 10 01:32:13 +0000 2010");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment