Java Week Day getDayOfWeek(int _year, int _month, int _day)

Here you can find the source of getDayOfWeek(int _year, int _month, int _day)

Description

get Day Of Week

License

Open Source License

Declaration

public static int getDayOfWeek(int _year, int _month, int _day) 

Method Source Code


//package com.java2s;

import java.util.*;

public class Main {
    public static int getDayOfWeek(int _year, int _month, int _day) {
        int year, month, date;

        Calendar cal = Calendar.getInstance();
        cal.set(_year, _month - 1, _day);

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

Related

  1. getDayOfWeek(Date date)
  2. getDayOfWeek(Date date)
  3. getDayOfWeek(Date date, int day)
  4. getDayOfWeek(Date dt)
  5. getDayOfWeek(Date start, int day)
  6. getDayOfWeek(int year, int month, int day)
  7. getDayOfWeek(long date)
  8. getDayOfWeek(long date)
  9. GetDayOfWeek(long p)