Android Date to Calendar Convert getCalendar(Date day)

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

Description

get Calendar

Declaration

public static GregorianCalendar getCalendar(Date day) 

Method Source Code

//package com.java2s;
import java.util.Date;
import java.util.GregorianCalendar;

public class Main {
    public static GregorianCalendar getCalendar(Date day) {
        GregorianCalendar gregorianCalendar = new GregorianCalendar();
        gregorianCalendar.setTime(day);//from  www  . jav a 2s.  co m
        return gregorianCalendar;
    }
}

Related

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