Fixed issue #7976: Date question: keyboard entries not validated

Dev: when using the keyboard on the datepicker,
Dev: in the date/time question, invalid dates could be entered
Dev: and submitted. Added validation for dates.