Java Minute Get getMinute(Date date)

Here you can find the source of getMinute(Date date)

Description

get Minute

License

Open Source License

Declaration

public static String getMinute(Date date) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

public class Main {

    public static String getMinute(Date date) {
        return FormatDate(date, "mm");
    }//w  ww . jav  a 2s .  c o  m

    public static String FormatDate(Date date, String sf) {
        if (date == null)
            return "";
        SimpleDateFormat dateformat = new SimpleDateFormat(sf);
        return dateformat.format(date);
    }
}

Related

  1. getMinute()
  2. getMinute()
  3. getMinute()
  4. getMinute(Date date)
  5. getMinute(Date date)
  6. getMinute(Date date1, Date date2)
  7. getMinute(long mills)
  8. getMinute(long time)
  9. getMinute(String time)