I want to get back unique dates with only days/months/year from source as: "2017-02-25 22:53:43" "2017-02-25 23:01:42" "2017-04-26 17:08:26" "2017-04-26 17:15:41"
column name is "date", the result should be [2017-02-25, 2017-02-26] if based days; [2017-02, 2017-04] if based on month; and [2017] based on years. I think need to use NSFetchRequest.predicate, but not sure how to do that.