correct date input