Java Day getDayDesc(Date arg)

Here you can find the source of getDayDesc(Date arg)

Description

This method is used for getting the description corresponding to Calendar day

License

Open Source License

Parameter

Parameter Description
arg a parameter

Declaration

public static String getDayDesc(Date arg) 

Method Source Code

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

Related

  1. getDayAfterTommorrowsDateFne()
  2. getDayBefore(Date date)
  3. getDayBegin(Date date)
  4. getDayBetween(String firstDay, String secondDay)
  5. getDayDate(String date, String formatFormat)
  6. getDayEnd(Date date)
  7. getDayEndTime(int off, String timezone)
  8. getDayForDate(String dateToCheck, String pattern)
  9. getDayFormat(Date date)