Fix datetime field bug

Same as previous except previous for date field, this one for datetime
field