Here you can find the source of getFiscalYear(Calendar calendar)
public static int getFiscalYear(Calendar calendar)
//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; } }