Skip to content

Instantly share code, notes, and snippets.

@jarek-przygodzki
Created August 6, 2014 14:04
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 jarek-przygodzki/916a2669e0b2dcd6f49a to your computer and use it in GitHub Desktop.
Save jarek-przygodzki/916a2669e0b2dcd6f49a to your computer and use it in GitHub Desktop.
Parse java.util.Date#toString output
def fmt = new java.text.SimpleDateFormat('EEE MMM dd HH:mm:ss zzz yyyy', Locale.US)
fmt.parse('Tue Jul 01 06:00:00 GMT+01:00 2014')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment