Java Calendar from Date date2Calendar(Date date)

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

Description

date Calendar

License

Open Source License

Declaration

public static Calendar date2Calendar(Date date) 

Method Source Code

//package com.java2s;

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

public class Main {

    public static Calendar date2Calendar(Date date) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(date);/*from w  w w. j a v  a 2 s . co m*/
        return cal;
    }
}

Related

  1. convertDateToCalendar(Date date)
  2. convertDateToCalendar(final Date d, boolean lenient)
  3. convertDateToCalendar(final Date dateToCompare)
  4. date2Calendar(Date date)
  5. date2Calendar(Date date)
  6. Date2Calendar(Date inDate)
  7. dateToCalendar(Date d)
  8. dateToCalendar(Date d)
  9. dateToCalendar(Date date)