Android Calendar Get getDateMin()

Here you can find the source of getDateMin()

Description

get Date Min, "yyyy-MM-dd HH:mm"

Declaration

public static final String getDateMin() 

Method Source Code

//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*/
}

Related

  1. getDate()
  2. getDate(Calendar c)
  3. getDateAsDirName()
  4. getDateAsF()
  5. getDateAss()
  6. getDay()
  7. getDay(Calendar c)
  8. getFirstOfWeek(Calendar cal, int week)
  9. getFragmentInDays(Calendar calendar, int fragment)