Android Day of Week Get getDayOfTheWeek(Date date)

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

Description

get Day Of The Week

Declaration

public static int getDayOfTheWeek(Date date) 

Method Source Code

//package com.java2s;

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static int getDayOfTheWeek(Date date) {
        Calendar c = Calendar.getInstance();
        c.setTimeInMillis(date.getTime());

        return c.get(Calendar.DAY_OF_WEEK);
    }//from   w  w w.j  a  v a2 s .c om
}

Related

  1. getDayofWeekInMonth(String year, String month, String weekOfMonth, String dayOfWeek)
  2. getDayOfWeek(String year, String month, String day)
  3. getDayOfWeek(String date)
  4. getDayOfWeek(Date date)
  5. getFirstDayOfWeek()
  6. getDayOfWeekZeroIndexed(Date dateTime)
  7. getReadableWeekDay(int day)
  8. getStringDayOfWeek(Date date)
  9. getDayOfWeek(String format, int calendarField)