Here you can find the source of getCurrWeek()
public static String getCurrWeek()
//package com.java2s; import java.util.*; public class Main { public static String getCurrWeek() { Calendar c = Calendar.getInstance(); int w = c.get(Calendar.WEEK_OF_YEAR); if (w < 10) { return "0" + w; }/* w w w . java 2s . c o m*/ return String.valueOf(w); } }