Here you can find the source of toCalendar(final Date date)
public static Calendar toCalendar(final Date date)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; import java.util.Locale; import java.util.TimeZone; public class Main { public static Calendar toCalendar(final Date date) { Calendar cal = Calendar.getInstance(); cal.setTime(date);// w w w . j a v a 2 s .c o m return cal; } public static Calendar toCalendar(final Date date, final Locale locale) { Calendar cal = Calendar.getInstance(locale); cal.setTime(date); return cal; } public static Calendar toCalendar(final Date date, final TimeZone timeZone) { Calendar cal = Calendar.getInstance(timeZone); cal.setTime(date); return cal; } public static Calendar toCalendar(final Date date, final TimeZone timeZone, final Locale locale) { Calendar cal = Calendar.getInstance(timeZone, locale); cal.setTime(date); return cal; } }