Java Week Day getWeekDay(Date date)

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

Description

get Week Day

License

Open Source License

Declaration

public static final String getWeekDay(Date date) 

Method Source Code


//package com.java2s;

import java.text.DateFormat;

import java.text.SimpleDateFormat;
import java.util.*;

public class Main {
    public static final String week = "EEEE";

    public static final String getWeekDay(Date date) {
        return getFormat(week).format(date);
    }/*w  w  w  .  j a va  2  s . com*/

    public static final String format(Date date, String formate) {
        if (date == null) {
            return "";
        }
        return getFormat(formate).format(date);
    }

    public static final String format(Long dateTmie, String formate) {
        Date date = new Date(dateTmie);
        return getFormat(formate).format(date);
    }

    public static final DateFormat getFormat(String format) {
        return new SimpleDateFormat(format);
    }
}

Related

  1. getWeekBeginDay(String date)
  2. getWeekDay()
  3. GetWeekDay()
  4. getWeekDay()
  5. getWeekday(Date date)
  6. getWeekDay(Date dt, int weekDay)
  7. getWeekDay(int weekday)
  8. getWeekDay(String date)
  9. getWeekday(String date)