final String day = date.substring(8, 10);
dynaActionForm.set("year", year);
dynaActionForm.set("month", month);
dynaActionForm.set("day", day);
final LocalTime begin;
if (selectedBegin != null && selectedBegin.length() > 0) {
final String hour = selectedBegin.substring(0, 2);
final String minute = selectedBegin.substring(3, 5);
dynaActionForm.set("beginningHour", hour);
dynaActionForm.set("beginningMinute", minute);
begin = getTimeDateFromForm(hour, minute);
} else {
begin = new LocalTime(0, 0, 0);
}
final LocalTime end;
if (selectedEnd != null && selectedEnd.length() > 0) {
final String hour = selectedEnd.substring(0, 2);
final String minute = selectedEnd.substring(3, 5);
dynaActionForm.set("endHour", selectedEnd.substring(0, 2));
dynaActionForm.set("endMinute", selectedEnd.substring(3, 5));
end = getTimeDateFromForm(hour, minute);
} else {
end = new LocalTime(23, 59, 59);
}
final LocalDate localDate = new LocalDate(Integer.parseInt(year), Integer.parseInt(month), Integer.parseInt(day));
return search(mapping, request, localDate, begin, end, dynaActionForm);