Here you can find the source of getMonthDesc(Date month)
Parameter | Description |
---|---|
month | a parameter |
public static String getMonthDesc(Date month)
//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(); } }