Here you can find the source of parseDateISO(String value)
public synchronized static Date parseDateISO(String value)
//package com.java2s; //License from project: Open Source License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static final String ISO_FORMAT_SECONDS = "yyyy-MM-dd'T'HH:mm:ss'Z'"; private static final SimpleDateFormat isoFormat = new SimpleDateFormat(); public synchronized static Date parseDateISO(String value) { if (value == null) { return null; }/*w w w .j av a 2 s. co m*/ isoFormat.applyPattern(ISO_FORMAT_SECONDS); try { return isoFormat.parse(value); } catch (ParseException pe) { // skip } isoFormat.applyPattern("yyyy-MM-dd"); try { return isoFormat.parse(value); } catch (ParseException pe) { return null; } } }