Java Week Day getLastDayOfWeek(int year, int month)

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

Description

get Last Day Of Week

License

Open Source License

Declaration

public static int getLastDayOfWeek(int year, int month) 

Method Source Code


//package com.java2s;

import java.util.*;

public class Main {
    public static int getLastDayOfWeek(int year, int month) {
        Calendar calendar = Calendar.getInstance();
        calendar.set(Calendar.YEAR, year);
        calendar.set(Calendar.MONTH, month);
        calendar.set(Calendar.DATE, 0);

        return calendar.get(Calendar.WEEK_OF_MONTH);
    }// w w  w .  j a  v a2s .co  m
}

Related

  1. getFirstDayOfWeek(String str, int week)
  2. getFirstDayOfWeek(String week)
  3. getFirstDayOfWeek(String week)
  4. getFriday(Date date)
  5. getLastDayOfCurrWeek()
  6. getLastSundayBeforeThisWeek()
  7. getLastWeekday()
  8. getLastWeekDay(int weekDay)
  9. getLastWeekDay(int weekDay)