Java Week Day getWeekDayByDate(Date date)

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

Description

get Week Day By Date

License

Open Source License

Declaration

public static String getWeekDayByDate(Date date) 

Method Source Code


//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String getWeekDayByDate(Date date) {
        SimpleDateFormat sdf = new SimpleDateFormat("EEEE");
        String week = sdf.format(date);
        return week;

    }//w w  w .  ja va2s  .  c  o m
}

Related

  1. getWeekDay(int weekday)
  2. getWeekDay(String date)
  3. getWeekday(String date)
  4. getWeekDay(String dateString, int weekDay)
  5. getWeekDay(String str)
  6. getWeekDayCN()
  7. getWeekdayForInt(int value)
  8. getWeekdayName(Date date)
  9. getWeekdayNames()