Skip to content

Instantly share code, notes, and snippets.

@miceno
Created January 24, 2011 11:03
Show Gist options
  • Select an option

  • Save miceno/793079 to your computer and use it in GitHub Desktop.

Select an option

Save miceno/793079 to your computer and use it in GitHub Desktop.
Date parsing
import java.util.Date
import java.text.SimpleDateFormat
String myDate= '2011-01-20T13:51:24.63Z'
Date dtTmp = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss").parse( myDate);
println dtTmp.toString()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment