Here you can find the source of getDayDesc(Date arg)
Parameter | Description |
---|---|
arg | a parameter |
public static String getDayDesc(Date arg)
//package com.java2s; /**// ww w . j av 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 the description corresponding to Calendar * day * * @param arg * @return */ public static String getDayDesc(Date arg) { SimpleDateFormat sdf = new SimpleDateFormat(); sdf.applyPattern("dd"); return sdf.format(arg).toUpperCase(); } }