Java Utililty Methods Month

List of utility methods to do Month

Description

The list of methods to do Month are organized into topic(s).

Method

StringgetQuarterLastMonth(String quarter)
Determine the last month of each quarter based on quarter.
if (null == quarter) {
    return null;
String year = quarter.substring(0, 4);
String quart = quarter.substring(4, 6);
String month = "";
if (quart.equals("01")) {
    month = "03";
...
StringgetRSLILMonth(int month)
get RSLIL Month
String rslilMonth = "";
switch (month) {
case 0:
    rslilMonth = "Jan";
    break;
case 1:
    rslilMonth = "Feb";
    break;
...
longgetSecondByMonth(int month)
get Second By Month
return getSecondByDay(month * 30);
StringgetStatis_month()
get Statimonth
return statis_month;
StringgetTargetMonth(Integer targetYm)
get Target Month
return targetYm.toString().substring(4, 6);
longgetTotalMonths(long time)
get Total Months
return time / daysInMonth;
StringgetYMonth(String dateFromDB)
get Y Month
return dateFromDB.subSequence(0, 10).toString();
StringimpleMonth(int month)
imple Month
String monthStr = new Integer(month).toString();
if (monthStr.length() == 1) {
    monthStr = "0" + monthStr;
return monthStr;
StringintToMonth(int m)
int To Month
switch (m) {
case 0:
    return "Jan";
case 1:
    return "Feb";
case 2:
    return "Mar";
case 3:
...
booleanisMonthInRange(int month)
Test to see if an integer is in the range of integers that can be months of the year.
boolean result = false;
if (month > 0 && month < 13) {
    result = true;
return result;