Correct parsing of datetime from form