Making date input more flexible