Java Calendar Year getFiscalYear(Calendar calendar)

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

Description

get Fiscal Year

License

Open Source License

Declaration

public static int getFiscalYear(Calendar calendar) 

Method Source Code

//package com.java2s;
/*/*from  w  w w  .  ja  v  a2s .  c o  m*/
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

import java.util.Calendar;

public class Main {
    public static int getFiscalYear(Calendar calendar) {
        int month = calendar.get(Calendar.MONTH) + 1;
        int year = calendar.get(Calendar.YEAR);
        if (month > 9) {
            year = year + 1;
        }
        return year;
    }
}

Related

  1. calendarFor(int day, int month, int year)
  2. calendarOf(int year, int month, int day, int hour, int minute, int second, int millis)
  3. copyYearMonthDay(Calendar destCal, Calendar sourceCal)
  4. createAndValidateCalendar(int month, int day, int year)
  5. getDecimalYear(Calendar calendar)
  6. getIntYear(Calendar c)
  7. getLastYear(Calendar cal)
  8. getStartOfWeekCalendar(final int year, final int weekOfYear, final Locale locale)
  9. getValidCalendar(int year, int month, int day)