Android Date to Calendar Convert Date2Calendar(Date d)

Here you can find the source of Date2Calendar(Date d)

Description

Date Calendar

Declaration

public static Calendar Date2Calendar(Date d) 

Method Source Code

//package com.java2s;

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

public class Main {
    public static Calendar Date2Calendar(Date d) {
        Calendar c = Calendar.getInstance();
        c.setTime(d);//from  www .j  av  a 2  s .c  om
        return c;
    }
}

Related

  1. getCalendar(Date date)
  2. getCalendar(Date day)
  3. toCalendar(Date date)
  4. getCalendar(Date date)