Java Month Format getMonthFormat(String dateString)

Here you can find the source of getMonthFormat(String dateString)

Description

get Month Format

License

Open Source License

Declaration

public static String getMonthFormat(String dateString) 

Method Source Code

//package com.java2s;
/***********************************************************************
 * Copyright (c) 2015 by Regents of the University of Minnesota.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Apache License, Version 2.0 which 
 * accompanies this distribution and is available at
 * http://www.opensource.org/licenses/apache2.0.php.
 *
 *************************************************************************/

public class Main {
    public static String getMonthFormat(String dateString) {
        int start = 0;
        int to = dateString.lastIndexOf(".");
        return dateString.substring(start, to);
    }//from   ww  w. ja  va2 s. c o m
}

Related

  1. getCurrMonthFirstDaySlashFormat()
  2. getDisplayMonth(Date time, int monthBefore, int monthAfter, SimpleDateFormat format)
  3. getFirstDayOfNextMonth(String dateFormat)
  4. getFormatCurMonthAsYYYYMM()
  5. getLastYearMonthYYYYMM()
  6. getUpMonthDate(String date, String dateFormat)
  7. getYesterMonthDate(String format)
  8. monthsBetween(String from, String to, String format)