code: public static LocalDateTime toDate(Day day, Time time)
     {
  
        time.assignDate(LocalDateTime.of(day.getLocalDate(),
        time.getLocalDateTime().toLocalTime()));
        
        return time.getLocalDateTime();
     }
docs: --------------------------------------------