Java Calendar Week getWeek(Calendar calendar)

Here you can find the source of getWeek(Calendar calendar)

Description

get Week

License

Open Source License

Declaration

public static int getWeek(Calendar calendar) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Calendar;

public class Main {
    public static int getWeek(Calendar calendar) {
        return calendar.get(Calendar.WEEK_OF_YEAR);
    }//from  ww  w . j a  v  a2  s.c o m
}

Related

  1. getFirstDayOfWeek(Calendar calendar)
  2. getFirstOfMonthDayOfWeek(GregorianCalendar aCalendar)
  3. getImmediateDayOfWeek(Calendar current, int dayOfWeek)
  4. getLastDayOfWeek(Calendar cal)
  5. getLastDayOfWeek(Calendar cal)
  6. getWeekDay(Calendar cal)
  7. getWeekdayPosition(Calendar jCalendar)
  8. getWeekEnd(boolean startSunday, Calendar date)
  9. getWeekOfCurrentDayWithoutStartShift(Calendar cal)