Here you can find the source of parse(String s)
public static Date parse(String s) throws ParseException
//package com.java2s; //License from project: Open Source License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static Date parse(String s) throws ParseException { // Not static to avoid locking problems SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"); return dateFormat.parse(s); }//ww w. j a va2 s.c o m }