Here you can find the source of getCurrentWeek()
public static String getCurrentWeek()
//package com.java2s; import java.util.Calendar; public class Main { public static String getCurrentWeek() { return getWeek(Calendar.getInstance()); }// w ww. j a v a2 s. com public static String getWeek(final Long date) { final Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(date); return getWeek(calendar); } public static String getWeek(final Calendar calendar) { final int weekOfYear = calendar.get(Calendar.WEEK_OF_YEAR); return String.valueOf(weekOfYear); } }