Fix datetime of input field