Java Calendar Year getYear(Calendar calendar)

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

Description

get Year

License

Apache License

Declaration

static public int getYear(Calendar calendar) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

public class Main {
    static public int getYear(Calendar calendar) {
        return calendar.get(Calendar.YEAR);
    }//w w w . j  a v  a2  s . co  m
}

Related

  1. getWeekOfYear(int startDay, Calendar dt)
  2. getWeekOfYearYear(GregorianCalendar cal)
  3. getYear(Calendar cal)
  4. getYear(Calendar calendar)
  5. getYear(Calendar calendar)
  6. getYear(Date date, Calendar cal)
  7. getYearForWeek(final Calendar cal)
  8. getYearList(Calendar currDate)
  9. isBeforeDay(Calendar date1, Calendar date2, boolean ignoreYear)