Android Day in Month Get dayNumber(Date date)

Here you can find the source of dayNumber(Date date)

Description

day Number

License

Open Source License

Declaration

public static int dayNumber(Date date) 

Method Source Code

//package com.java2s;

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static int dayNumber(Date date) {
        Calendar calender = calendarDate(date);
        return calender.get(Calendar.DAY_OF_MONTH);
    }/*from   ww  w  .  j  av  a2s .c om*/

    public static Calendar calendarDate(Date date) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        return calendar;
    }
}

Related

  1. getNextMonthDays(String argDate)
  2. daysInMonth(Calendar c)
  3. getNextMonthDays(String argDate)
  4. perMonthDays(Calendar cal)
  5. numDaysToEndOfMonth()
  6. getDayOfWeek(long time)
  7. getStringDayOfMonth(Date date)
  8. getFirstDayOfMonth(String format)
  9. getFirstDayOfMonth(String format)