I thought of Integer 16, because it’s easy to calculate years, depending from it.
String is good for searching, for ex. it’s easy to find year 78 as substring from 1978.
And it’s also possible to keep year as Date.
What’s the best practice?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ll stay with
Integer 16, because it’s the way how it’s done in the book “CoreData for iOS”.