Java Date to Calendar dateToGregorianCalendar(Date date)

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

Description

date To Gregorian Calendar

License

Apache License

Declaration

public static GregorianCalendar dateToGregorianCalendar(Date date) 

Method Source Code

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

import java.util.*;

public class Main {

    public static GregorianCalendar dateToGregorianCalendar(Date date) {
        if (date == null)
            return null;
        GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT+09:00"), Locale.KOREAN);
        cal.setTime(date);//from  ww w.  j av  a  2  s.  c o m
        return cal;
    }
}

Related

  1. DateToCalendar(Date date)
  2. getCalendar(boolean dateAndTime)
  3. getCalendar(Date date)
  4. getCalendar(final Date date, final boolean stripTime)
  5. getCalendar(String dateString)