Java Month getMonthFromDate(String date)

Here you can find the source of getMonthFromDate(String date)

Description

get Month From Date

License

Open Source License

Declaration

public static String getMonthFromDate(String date) 

Method Source Code

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

public class Main {

    public static String getMonthFromDate(String date) {
        int index = date.lastIndexOf("-");
        return date.substring(0, index);
    }/*from  w  w w. java2 s  .  c o m*/
}

Related

  1. getMonthByDate(String yyyyMMdd)
  2. getMonthCountByBillMode(String billMode)
  3. getMonthDescription(int month)
  4. getMonthDiff(String startDate, String endDate)
  5. getMonthEnd(String strdate)
  6. getMonthFromYM(String ym)
  7. getMonthInEnglish(int month)
  8. getMonthLastDate(int month, int year)
  9. getMonthLength(final int year, final int month)