Java Month Get getMonth(String str_date)

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

Description

get Month

License

Open Source License

Declaration

public static String getMonth(String str_date) 

Method Source Code

//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));
    }
}

Related

  1. getMonth(String name)
  2. getMonth(String pFormattedDate)
  3. getMonth(String quarters)
  4. getMonth(String sMonth)
  5. getMonth(String startTime)
  6. getMonth(String strDate)
  7. getMonth(String strDate)
  8. getMonth(String tempdat, Locale locale)
  9. getMonth1D()