Java Date to Day getDay(java.util.Date date)

Here you can find the source of getDay(java.util.Date date)

Description

get Day

License

Open Source License

Declaration

public static int getDay(java.util.Date date) 

Method Source Code

//package com.java2s;

public class Main {

    public static int getDay(java.util.Date date) {
        java.util.Calendar c = java.util.Calendar.getInstance();

        c.setTime(date);// w  ww  .  j  ava 2 s.  c  o  m

        return c.get(java.util.Calendar.DAY_OF_MONTH);

    }
}

Related

  1. getDay(Date date)
  2. getDay(Date date)
  3. getDay(Date date)
  4. getDay(Date date, int day)
  5. getDay(Date dateParam)
  6. getDay(String strDate)
  7. getDayBetween(Date startDate, Date endDate)
  8. getDayCount(java.util.Date _startDate, java.util.Date _endDate)
  9. getDayEnd(Date date)