Detect correctly when to parse value from DateTime, Date or Time field

issue3957
review11301002