Here you can find the source of getMonth(String date)
public static int getMonth(String date)
//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*/ }