BugFix search from date type field

My precedent patch works only with a column of type dateTime. This commit is for the both columns of type date and dateTime.