Fixed bug in Event getDateFromInput