i want to get number of weeks in current month.That including the previous month\'s days in the last week and the first week days in the next month.
Something like t
We can use the calendar class and then do something like
Calendar calendar = Calendar.getInstance(); System.out.println(calendar.getActualMaximum(Calendar.WEEK_OF_MONTH));
this will return the number of weeks in the current month