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