Here you can find the source of getDateMin()
public static final String getDateMin()
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static final String getDateMin() { Calendar cal = Calendar.getInstance(); java.text.SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd HH:mm"); String cdate = sdf.format(cal.getTime()); return cdate; }/*from w w w .j a va 2 s.co m*/ }