Java Month displayMonthlyPeriod(String week)

Here you can find the source of displayMonthlyPeriod(String week)

Description

display Monthly Period

License

Open Source License

Declaration

public static String displayMonthlyPeriod(String week) 

Method Source Code

//package com.java2s;

public class Main {
    public static String displayMonthlyPeriod(String week) {
        String[] monthNames = { "January", "February", "March", "April",
                "May", "June", "July", "August", "September", "October",
                "November", "December" };
        StringBuffer displayPeriod = new StringBuffer();

        displayPeriod.append(monthNames[Integer.parseInt(week.substring(0,
                week.indexOf('-')))] + " ");
        displayPeriod.append(week.substring(week.lastIndexOf('-') + 1));
        return displayPeriod.toString();
    }//from w  w w  . j  a  v  a  2 s  . co m
}

Related

  1. calculateMonthlyNominalInterestRate(final double effectiveInterestRate)
  2. checkMonth(int month)
  3. createDateMonth(String dateYear)
  4. createTestCCMonth()
  5. daemonThread(Runnable runnable)
  6. doy2month(int year, int doy)
  7. extractMonthFromDate(String dateString)
  8. findMonth(String strMonth)
  9. fixMonth(int month)