Java Calendar Month getCalDayofMonth(Date calendarDay)

Here you can find the source of getCalDayofMonth(Date calendarDay)

Description

This method is used for getting calendar date of month

License

Open Source License

Parameter

Parameter Description
calendarDay a parameter

Declaration

public static int getCalDayofMonth(Date calendarDay) 

Method Source Code

//package com.java2s;
/**/*w w  w .ja v  a2 s.  c  om*/
 * 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.util.Calendar;
import java.util.Date;

public class Main {
    /**
     * This method is used for getting calendar date of month
     * 
     * @param calendarDay
     * @return
     */
    public static int getCalDayofMonth(Date calendarDay) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(calendarDay);
        return calendar.get(Calendar.DAY_OF_MONTH);
    }
}

Related

  1. calendarMonthToInt(int calendarMonth)
  2. calToLastDayOfMonth(Calendar c)
  3. convertRemoveAfterMonth(Calendar cal)
  4. endOfMonth(Calendar calendar)
  5. floorDayOfMonth(Calendar cal)
  6. getDayOfMonthPostfix(Calendar cal)
  7. getDaysInMonth(Calendar cal)
  8. getFirstDateOfMonth(Calendar calendar)
  9. getFirstDayOfMonth(Calendar c)