date input modification