Java Month Get getMonth(String date)

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

Description

get Month

License

Open Source License

Declaration

public static int getMonth(String date) 

Method Source Code

//package com.java2s;

public class Main {
    public static int getMonth(String date) {
        return Integer.parseInt(date.substring(4, 6));
    }/*from  w  w  w.j a  v a2s . c  o  m*/
}

Related

  1. getMonth(long l)
  2. getMonth(SimpleDateFormat df, String dateStr)
  3. getMonth(String aDate)
  4. getMonth(String date)
  5. getMonth(String date)
  6. getMonth(String dateKey)
  7. getMonth(String datetime)
  8. getMonth(String day)
  9. getMonth(String f)