Modified db field type datetime to date