Java Month Day getDayOfMonth()

Here you can find the source of getDayOfMonth()

Description

get Day Of Month

License

LGPL

Declaration

public static int getDayOfMonth() 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.util.*;

public class Main {
    public static int getDayOfMonth() {
        Calendar calendar = Calendar.getInstance();
        return calendar.get(Calendar.DAY_OF_MONTH);
    }//  w  w w  .  j av a 2  s . co m

    public static int getDayOfMonth(final Date date) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        return calendar.get(Calendar.DAY_OF_MONTH);
    }
}

Related

  1. getActualMaximumDayOfMonth(final Date date)
  2. getCurMonthFirstDay()
  3. getCurrentDayOfMonth()
  4. getCurretnMonthFirstDay()
  5. getCurrMonthFirstDay()
  6. getDaysInMonth(final Date date)
  7. getDaysOfMonth(Date date)
  8. getDaysOfMonth(Date date)
  9. getFirstDate(String base_month)