Return to Snippet

Revision: 39788
at January 21, 2011 01:20 by miceno


Initial Code
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()

Initial URL

                                

Initial Description

                                

Initial Title
Convert a String (atom date) to Date

Initial Tags
date

Initial Language
Groovy