示例#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;
  }