Predicate for comparing the month component of a Core Data date attribute

Posted by JK on Stack Overflow See other posts from Stack Overflow or by JK
Published on 2010-05-29T15:01:53Z Indexed on 2010/05/29 15:12 UTC
Read the original article Hit count: 178

I have a Core Data entity which has a date attribute. I would like to write a predicate to extract all dates within a specific month, e.g. July, irrespective of year. How can this be achieved? Thanks

© Stack Overflow or respective owner

Predicate for comparing the month component of a Core Data date attribute

Posted by JK on Stack Overflow See other posts from Stack Overflow or by JK
Published on 2010-05-29T04:35:32Z Indexed on 2010/05/29 4:42 UTC
Read the original article Hit count: 178

I have a Core Data entity which has a date attribute. I would like to write a predicate to extract all dates within a specific month, e.g. July, irrespective of year. How can this be achieved? Thanks

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa