List of utility methods to do Month Number Get
double | eemonth(double serial_number) eemonth if (!isFinite(serial_number)) { return Double.NaN; if (serial_number < 1) { return 1; if (serial_number > 60) { serial_number--; ... |
String | getInitialsByMonthNumber(String monthNumber) get Initials By Month Number if (monthNumber.equals("01")) return "Jan"; else if (monthNumber.equals("02")) return "Feb"; else if (monthNumber.equals("03")) return "Mar"; else if (monthNumber.equals("04")) return "Apr"; ... |
String | getMonthDigit(String month) get Month Digit if ("123456789101112".indexOf(month) != -1) { return month; String mon = "-1"; for (int i = 0; i < 12; i++) { if (equalsIgnoreCase(month, monthNames[i])) { mon = "" + (i + 1); break; ... |
int[] | getMonthIds() get Month Ids return MONTH_IDS;
|
int | getMonthIndex(String str) simple little function to get the index of the month. int ix; int iValue; if (str == null || str.length() == 0) return (-1); str = str.trim(); if (str.length() > 3) str = str.substring(0, 3); for (ix = 0; ix < strMonths.length; ++ix) { ... |
String | getMonthIndexAsString(String type) get Month Index As String return Integer.toString(Integer.parseInt(type) - 1);
|
int | getMonthNumberByMonthInitials(String monthInitials) get Month Number By Month Initials if (monthInitials.equals("Jan")) return 1; else if (monthInitials.equals("Feb")) return 2; else if (monthInitials.equals("Mar")) return 3; else if (monthInitials.equals("Apr")) return 4; ... |
String | getMonthNumberString(int month) get Month Number String if (month >= 1 && month <= 9) return "0" + month; else return month + ""; |
String | getMonthNumberString(String sMonth) get Month Number String sMonth = sMonth.toUpperCase(); if (sMonth.startsWith("JAN")) return "01"; if (sMonth.startsWith("FEB")) return "02"; if (sMonth.startsWith("MAR")) return "03"; if (sMonth.startsWith("APR")) ... |
int | getNumberOfRSLILMonth(String month) get Number Of RSLIL Month int monthNr = 0; if (month.equals("Jan")) { monthNr = 1; } else if (month.equals("Feb")) { monthNr = 2; } else if (month.equals("Mar")) { monthNr = 3; } else if (month.equals("Apr")) { ... |