Java Month Number Get getNumberOfRSLILMonth(String month)

Here you can find the source of getNumberOfRSLILMonth(String month)

Description

get Number Of RSLIL Month

License

Open Source License

Declaration

public static int getNumberOfRSLILMonth(String month) 

Method Source Code

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

public class Main {
    public static int getNumberOfRSLILMonth(String month) {
        int monthNr = 0;

        if (month.equals("Jan")) {
            monthNr = 1;/*from   ww  w .  j  a  va 2s.c  o m*/
        } else if (month.equals("Feb")) {
            monthNr = 2;
        } else if (month.equals("Mar")) {
            monthNr = 3;
        } else if (month.equals("Apr")) {
            monthNr = 4;
        } else if (month.equals("May")) {
            monthNr = 5;
        } else if (month.equals("Jun")) {
            monthNr = 6;
        } else if (month.equals("Jul")) {
            monthNr = 7;
        } else if (month.equals("Aug")) {
            monthNr = 8;
        } else if (month.equals("Sep")) {
            monthNr = 9;
        } else if (month.equals("Oct")) {
            monthNr = 10;
        } else if (month.equals("Nov")) {
            monthNr = 11;
        } else if (month.equals("Dec")) {
            monthNr = 12;
        }

        return monthNr;
    }
}

Related

  1. getMonthIndex(String str)
  2. getMonthIndexAsString(String type)
  3. getMonthNumberByMonthInitials(String monthInitials)
  4. getMonthNumberString(int month)
  5. getMonthNumberString(String sMonth)
  6. getNumByStrMonth(String strMonth)
  7. getNumericMonthEquivalent(String s)
  8. monthAdhToNumber(final String month)
  9. monthNumber(int month)