Java Month getFirstMonthByQuarter(int month)

Here you can find the source of getFirstMonthByQuarter(int month)

Description

get First Month By Quarter

License

Apache License

Declaration

public static int getFirstMonthByQuarter(int month) 

Method Source Code

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

public class Main {
    public static int getFirstMonthByQuarter(int month) {
        int quarter = 0;
        if (month >= 1 && month <= 3) {
            quarter = 1;/* w w w  .j  ava2  s.  c o m*/
        }
        if (month >= 4 && month <= 6) {
            quarter = 4;
        }
        if (month >= 7 && month <= 9) {
            quarter = 7;
        }
        if (month >= 10 && month <= 12) {
            quarter = 10;
        }
        return quarter;
    }
}

Related

  1. getAllowMonth(String startdate, int count)
  2. getAssignMonth(String date)
  3. getCurrDateByMonth(String date)
  4. getEnligthMonth(String en)
  5. getEnMonth(String month)
  6. getFirstMonthOfQuarter(String quarter)
  7. getFiscalMonth(int month, int fiscalMonthOffset)
  8. getFrontMonth(String month)
  9. getMonthBegin(String strdate)