Fixed illogical date input for update