fix date input parsing for events