Java Month ResolveMonth(String MonthToResolve)

Here you can find the source of ResolveMonth(String MonthToResolve)

Description

Resolve Month

License

Open Source License

Declaration

public static String ResolveMonth(String MonthToResolve) 

Method Source Code

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

public class Main {
    public static String ResolveMonth(String MonthToResolve) {
        if (MonthToResolve.equals("Jan"))
            return "01";
        if (MonthToResolve.equals("Feb"))
            return "02";
        if (MonthToResolve.equals("Mar"))
            return "03";
        if (MonthToResolve.equals("Apr"))
            return "04";
        if (MonthToResolve.equals("May"))
            return "05";
        if (MonthToResolve.equals("Jun"))
            return "06";
        if (MonthToResolve.equals("Jul"))
            return "07";
        if (MonthToResolve.equals("Aug"))
            return "08";
        if (MonthToResolve.equals("Sep"))
            return "09";
        if (MonthToResolve.equals("Oct"))
            return "10";
        if (MonthToResolve.equals("Nov"))
            return "11";
        if (MonthToResolve.equals("Dec"))
            return "12";
        return "";
    }//from  www .  j av a 2  s.co  m
}

Related

  1. nextMonthIndex(int current, int step)
  2. normalizeMonth(final int month)
  3. normalizeMonth(String word)
  4. paraseMonth(String yearMonth)
  5. parseMonth(final int month)
  6. returnMonth(String month)
  7. roundMonthUnits(final int defaultUnitValue)
  8. setStatis_month(String year_month)
  9. startDaemonThread(Runnable runnable)