Here you can find the source of parseDateISO(String date)
public static Calendar parseDateISO(String date)
//package com.java2s; //License from project: Apache License import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static final DateFormat FORMAT_DATE_ISO = new SimpleDateFormat("yyyy-MM-dd"); public static final DateFormat FORMAT_DATE_TIME = new SimpleDateFormat("dd/MM/yyyy HH:mm"); public static Calendar parseDateISO(String date) { return parseDateTime(date, FORMAT_DATE_ISO); }// w ww . jav a2 s . c om public static Calendar parseDateTime(String dateTime) { return parseDateTime(dateTime, FORMAT_DATE_TIME); } public static Calendar parseDateTime(String dateTime, DateFormat format) { Calendar resultado = GregorianCalendar.getInstance(); try { resultado.setTime(format.parse(dateTime)); } catch (ParseException e) { throw new IllegalArgumentException(e); } return resultado; } }