Is it possible to find the current week of the year using NSDateComponents and setWeek: ? As setWeek uses a number form 1 – 52 every week in the year, how can I find the number representing this week?
Share
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.
If I understand your question correctly, I think the solution is simple, you create a NSDateComponents of the current date and you get the week.