Changes Datetime to Date in db