Java Month Get getMonthDesc(Date month)

Here you can find the source of getMonthDesc(Date month)

Description

This method is used for getting month description

License

Open Source License

Parameter

Parameter Description
month a parameter

Declaration

public static String getMonthDesc(Date month) 

Method Source Code

//package com.java2s;
/**//from   www .j a  v a2 s.c o  m
 * Copyright (C) 2013 Company. All Rights Reserved. 
 * 
 * This software is the proprietary information of Company . 
 * Use is subjected to license terms. 
 *
 * @since Jul 17, 2013 11:48:25 PM
 * @author SPA
    
 *
 */

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    /**
     * This method is used for getting month description
     * 
     * @param month
     * @return
     */
    public static String getMonthDesc(Date month) {
        SimpleDateFormat sdf = new SimpleDateFormat();
        sdf.applyPattern("MM");
        return sdf.format(month).toUpperCase();
    }
}

Related

  1. getMonthBefore(Date d, int number)
  2. getMonthBegin(String strdate)
  3. getMonthBegin(String strdate)
  4. getMonthByNow(int month)
  5. getMonthCount(String from, String to)
  6. getMonthEnd(Date date)
  7. getMonthEnd(String strdate)
  8. getMonthEnd(String strdate)
  9. getMonthEndDate(Date date)