[Solved] Current month count monday?
you can use this method public int countMonday(int year, int month) { Calendar calendar = Calendar.getInstance(); // Note that month is 0-based in calendar, bizarrely. calendar.set(year, month – 1, 1); int daysInMonth = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); int count = 0; for (int day = 1; day <= daysInMonth; day++) { calendar.set(year, month – 1, day); int dayOfWeek … Read more