Java Calendar from Date calendarFromDate(Date date)

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

Description

calendar From Date

License

Open Source License

Declaration

public static Calendar calendarFromDate(Date date) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

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

public class Main {
    public static Calendar calendarFromDate(Date date) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(date);/*from   w  w  w  .  ja  v a2 s .  c o  m*/
        return cal;
    }
}

Related

  1. convertDateToCalendar(Date date)
  2. convertDateToCalendar(Date date)
  3. convertDateToCalendar(Date date)
  4. convertDateToCalendar(final Date d, boolean lenient)