예제 #1
0
 public static Date toDate(Calendar c) {
   return c.getTime();
 }
예제 #2
0
  public static Calendar toCalendar(Date date) {

    final Calendar calendar = Calendar.getInstance();
    calendar.setTime(date);
    return calendar;
  }