Java Month getFirstMonthOfQuarter(String quarter)

Here you can find the source of getFirstMonthOfQuarter(String quarter)

Description

get First Month Of Quarter

License

Open Source License

Declaration

public static String getFirstMonthOfQuarter(String quarter) 

Method Source Code

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

public class Main {

    public static String getFirstMonthOfQuarter(String quarter) {
        int qu = Integer.parseInt(quarter);
        String month = "";
        if (qu == 1) {
            month = "01";
        } else if (qu == 2) {
            month = "04";
        } else if (qu == 3) {
            month = "07";
        } else if (qu == 4) {
            month = "10";
        }/*from   w ww  . java 2 s .c om*/
        return month;
    }
}

Related

  1. getAssignMonth(String date)
  2. getCurrDateByMonth(String date)
  3. getEnligthMonth(String en)
  4. getEnMonth(String month)
  5. getFirstMonthByQuarter(int month)
  6. getFiscalMonth(int month, int fiscalMonthOffset)
  7. getFrontMonth(String month)
  8. getMonthBegin(String strdate)
  9. getMonthBeginByMonth(String month)