List of utility methods to do Date to Calendar
Calendar | toCalendar(Date date) Convert a Date into a Calendar object. Calendar c = Calendar.getInstance();
c.setTime(date);
return c;
|
Calendar | toCalendar(Date date) Convert the given date to a Calendar object. Calendar calendar = Calendar.getInstance();
calendar.clear();
calendar.setTime(date);
return calendar;
|
Calendar | toCalendar(Date dtime) to Calendar if (dtime == null) { return null; Calendar c = Calendar.getInstance(); c.setTime(dtime); return c; |
Calendar | toCalendar(Date value) Converts the given date to a calendar. if (value == null) { return null; Calendar cal = Calendar.getInstance(); cal.setTime(value); return cal; |
Calendar | toCalendar(final Date date) to Calendar Calendar cal = Calendar.getInstance();
cal.setTime(date);
return cal;
|
Calendar | toCalendar(final Date date, final Locale locale) to Calendar if (date == null) { return null; Calendar cal; if (locale == null) { cal = Calendar.getInstance(); } else { cal = Calendar.getInstance(locale); ... |
Calendar | toCalendar(final Date date, final TimeZone tz) Converts a Date of a given TimeZone into a Calendar final Calendar c = Calendar.getInstance(tz); c.setTime(date); return c; |