Java Calendar from Date dateToCalendar(Date d)

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

Description

date To Calendar

License

Open Source License

Declaration

public static Calendar dateToCalendar(Date d) 

Method Source Code

//package com.java2s;

import java.util.Calendar;

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

public class Main {
    public static Calendar dateToCalendar(Date d) {
        Calendar c1 = new GregorianCalendar();
        c1.setTime(d);//from ww w. jav  a  2 s  .c  o m
        return c1;
    }
}

Related

  1. convertDateToCalendar(final Date dateToCompare)
  2. date2Calendar(Date date)
  3. date2Calendar(Date date)
  4. date2Calendar(Date date)
  5. Date2Calendar(Date inDate)
  6. dateToCalendar(Date d)
  7. dateToCalendar(Date date)
  8. dateToCalendar(Date date)
  9. dateToCalendar(Date date)