Java Day getDay(Date date)

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

Description

get Day

License

Open Source License

Declaration

public static String getDay(Date date) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

public class Main {

    public static String getDay(Date date) {
        return FormatDate(date, "dd");
    }// w  w w  . j a  v 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. dayToUTCSeconds(String day)
  2. getDateYYMMDD()
  3. getDateYYMMDD(java.util.Date date)
  4. getDay(Date date)
  5. getDay(Date date)
  6. getDay(Date date)
  7. getDay(Date date, HashMap date2day)
  8. getDay(java.util.Date date)
  9. getDay(SimpleDateFormat df, String dateStr)