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