Android Date to Calendar Convert getCalendar(Date date)

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

Description

get Calendar

Declaration

public static Calendar getCalendar(Date date) 

Method Source Code

//package com.java2s;

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

public class Main {
    public static Calendar getCalendar(Date date) {
        if (date == null)
            return null;
        Calendar c = new GregorianCalendar();
        c.setTime(date);/*from w w  w . j  a v  a2s  .c om*/
        return c;
    }
}

Related

  1. Date2Calendar(Date d)
  2. getCalendar(Date date)
  3. getCalendar(Date day)
  4. toCalendar(Date date)
  5. getCalendarFromDate(Date date)
  6. calendarFromDate(Date d)
  7. calendarDate(Date date)
  8. convert(Date date)