Fixed display issue with datepicker where invalid characters are shown