List of utility methods to do Month Number Get
int | getNumByStrMonth(String strMonth) get Num By Str Month if (strMonth.equals("January")) { return 1; if (strMonth.equals("February")) { return 2; if (strMonth.equals("March")) { return 3; ... |
String | getNumericMonthEquivalent(String s) get Numeric Month Equivalent if (s.equalsIgnoreCase("Jan")) return "01"; if (s.equalsIgnoreCase("Feb")) return "02"; if (s.equalsIgnoreCase("Mar")) return "03"; if (s.equalsIgnoreCase("Apr")) return "04"; ... |
String | monthAdhToNumber(final String month) month Adh To Number if (month.equals("JAN")) { return "01"; if (month.equals("FEB")) { return "02"; if (month.equals("MAR")) { return "03"; ... |
int | monthNumber(int month) month Number switch (month) { case 1: return Calendar.JANUARY; case 2: return Calendar.FEBRUARY; case 3: return Calendar.MARCH; case 4: ... |