Android Date to Calendar Convert convert(Date date)

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

Description

convert

License

Open Source License

Declaration

private static Calendar convert(Date date) 

Method Source Code

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

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

public class Main {
    private static Calendar convert(Date date) {
        Calendar calendar = new GregorianCalendar();
        calendar.setTime(date);//from w w w . ja v  a2s  .  c  o  m
        return calendar;
    }
}

Related

  1. toCalendar(Date date)
  2. getCalendar(Date date)
  3. getCalendarFromDate(Date date)
  4. calendarFromDate(Date d)
  5. calendarDate(Date date)
  6. getCalendarField(Date date, int field)
  7. getCalendarFormDate(Date date)