Пример #1
0
 @SuppressWarnings("deprecation")
 private static Date getCombineDate(DateField dateField, TimeField timeField) {
   Date result = null;
   Date date = dateField.getValue();
   Date time = timeField.getValue();
   if (date != null && time != null) {
     result =
         new Date(
             date.getYear(),
             date.getMonth(),
             date.getDate(),
             time.getHours(),
             time.getMinutes(),
             time.getSeconds());
   }
   return result;
 }