To get a week number of a specific date use the Calendar.Week_of_year. To get the week numbers of a certain month run through each day of the month. You can do something like this, calling the function for a the specific month and year and String[] in return with the week number for each day.