Java Date to Calendar getCalendar(Date date)

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

Description

get Calendar

License

Open Source License

Declaration

public static Calendar getCalendar(Date date) 

Method Source Code

//package com.java2s;

import java.util.*;

public class Main {
    public static Calendar getCalendar(Date date) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);//  www.j  a v a 2s.  c o m
        return calendar;
    }
}

Related

  1. DateToCalendar(Date date)
  2. dateToGregorianCalendar(Date date)
  3. getCalendar(boolean dateAndTime)
  4. getCalendar(final Date date, final boolean stripTime)
  5. getCalendar(String dateString)
  6. toCalendar(Date date)
  7. toCalendar(Date dtime)