Java Date Create date(Date d)

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

Description

date

License

Apache License

Declaration

public static int date(Date d) 

Method Source Code

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

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

public class Main {
    public static int date(Date d) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(d);//  ww w  .ja  va  2 s .  c o  m
        return cal.get(Calendar.DATE);
    }
}

Related

  1. createFutureDate()
  2. createFutureDate(int min)
  3. createInitialDateQuery(final Date date)
  4. createTime(Date date)
  5. date()
  6. date(final int year, final int month, final int dayOfMonth)
  7. date(int day, int month, int year)
  8. date(int y, int m, int d)
  9. date(int year, int month, int date)