Here you can find the source of getAssignMonth(String date)
public static String getAssignMonth(String date)
//package com.java2s; public class Main { public static String getAssignMonth(String date) { if (date != null && date.length() >= 6) return date.substring(4, 6); return null; }//w w w . j av a 2 s. c o m }