I like to know what week of the month a particular day falls. For example, September 20, 2012 falls on the 4th week of September, but the code below displays it as 3, which is incorrect. The system divides the days by 7 and returns the output, but I do not need this. I searched in the Joda API but could not find a solution. Please let me know if there is a way to find out the week of the month, the day is falling
Calendar ca1 = Calendar.getInstance();
ca1.set(2012,9,20);
int wk=ca1.get(Calendar.WEEK_OF_MONTH);
System.out.println("Week of Month :"+wk);
source
share