Here you can find the source of getMonthByDate(String yyyyMMdd)
public static String getMonthByDate(String yyyyMMdd)
//package com.java2s; //License from project: Apache License public class Main { public static String getMonthByDate(String yyyyMMdd) { return yyyyMMdd.substring(0, 6); }/*from www . j a v a2 s. c o m*/ }