Here you can find the source of getMonth(String str_date)
public static String getMonth(String str_date)
//package com.java2s; /**/*from ww w .ja va2 s .com*/ * Copyright (C) 2002-2005 WUZEWEN. All rights reserved. * WUZEWEN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ public class Main { public static String getMonth(String str_date) { return getMonth(str_date, "-"); } public static String getMonth(String str_date, String sep) { return str_date.substring(str_date.indexOf(sep) + 1, str_date.lastIndexOf(sep)); } }