Java tutorial
//package com.java2s; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static final SimpleDateFormat mISO8601DateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); public static Date parseISO8601Date(String s) throws ParseException { synchronized (mISO8601DateFormat) { Date date = new Date(Long.parseLong(s)); return date; // return mISO8601DateFormat.parse(s); } } }