Here you can find the source of parseDate(String timeString)
public static Date parseDate(String timeString)
//package com.java2s; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { private static final String DETAIL_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss"; private static SimpleDateFormat sFormat; public static Date parseDate(String timeString) { sFormat = new SimpleDateFormat(DETAIL_TIME_FORMAT, Locale.CHINA); try {/* ww w.j a va2 s. co m*/ return sFormat.parse(timeString); } catch (ParseException e) { e.printStackTrace(); return null; } } }