Java Date to Calendar DateToCalendar(Date date)

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

Description

Date To Calendar

License

Apache License

Declaration

public static Calendar DateToCalendar(Date date) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {

    public static Calendar DateToCalendar(Date date) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(date);//w w w.ja  v  a2s  .  com
        return cal;
    }
}

Related

  1. dateToGregorianCalendar(Date date)
  2. getCalendar(boolean dateAndTime)
  3. getCalendar(Date date)
  4. getCalendar(final Date date, final boolean stripTime)