Java Week Day firstDayOfWeek(int year, int month)

Here you can find the source of firstDayOfWeek(int year, int month)

Description

first Day Of Week

License

Open Source License

Declaration

@SuppressWarnings("deprecation")
public static int firstDayOfWeek(int year, int month) 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {

    @SuppressWarnings("deprecation")
    public static int firstDayOfWeek(int year, int month) {
        Date firstDate = new Date(year - 1900, month - 1, 1);
        return firstDate.getDay();
    }/*from   ww  w .ja v a 2s . c  om*/
}

Related

  1. dayOfWeek(Date pWallDate)
  2. dayOfWeek(final Date date)
  3. dayOfWeek(String pFormerStr)
  4. dayOfWeekFix(Calendar calendar)
  5. dayOfWeekRus(Date d)
  6. getAPastDayOfTheWeek(String dayToGet)
  7. getBothDayOfWeek(String str, int week)
  8. getCurrentDayOfWeekArabia()
  9. getCurrentDayOfWeekEnglish()