Here you can find the source of getWeekOfMonth()
private static int getWeekOfMonth()
//package com.java2s; /*/*from w ww . j a v a 2s . co m*/ * Copyright (c) 2016 Boyter Online Services * * Use of this software is governed by the Fair Source License included * in the LICENSE.TXT file, but will be eventually open under GNU General Public License Version 3 * see the README.md for when this clause will take effect * * Version 1.3.10 */ import java.util.Calendar; public class Main { /** * Used to know what week of the month it is to display a different image on the main page */ private static int getWeekOfMonth() { Calendar cal = Calendar.getInstance(); return cal.get(Calendar.WEEK_OF_MONTH); } }