Here you can find the source of getMin()
public static Date getMin()
//package com.java2s; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; public class Main { public static final String _DATE_MIN = "1000-01-02 00:00:00"; public static Date getMin() { return toDate(_DATE_MIN); }//from w w w . ja v a2s . c o m /** * This function is use to convert string date format to data format * @param dateStr * @return */ public static Date toDate(String dateStr) { return toDate(dateStr, null); } /** * Convert string date format with time zone * @param dateStr * @param tz * @return */ public static Date toDate(String dateStr, TimeZone tz) { if (tz == null) tz = TimeZone.getDefault(); if (dateStr == null) return null; SimpleDateFormat fmt = null; if (dateStr.length() == 19) { fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); fmt.setTimeZone(tz); } else { fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z"); } try { return fmt.parse(dateStr); } catch (ParseException e) { return null; } } }