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;

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

Related

  1. Date2Calendar(Date d)
  2. getCalendar(Date day)
  3. toCalendar(Date date)
  4. getCalendar(Date date)
  5. getCalendarFromDate(Date date)