how can i translate the following sqlite query to core data
select name, firstname, class, telephone, entryDateTime, counselor, count()
from myTable
group by strftime('yy-mm-dd', entryDateTime), name, class, counselor
order by entryDateTime desc;
i want to group by date(yy-mm-dd), class, counselor, and name. entryDateTime is in UTC but it should be converted to local time.
thanks in advance