Here you can find the source of getCalendar(Date inputDate)
public static Calendar getCalendar(Date inputDate)
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static Calendar getCalendar(Date inputDate) { if (inputDate == null) return null; Calendar calendar = Calendar.getInstance(); calendar.setTime(inputDate);//w w w.j a v a 2 s . c o m return calendar; } }