title: How to get NSDate day, month and year in integer format?
body: <p>I want to get the day, month and year components of <code>NSDate</code> in integer form i.e. if the date is 1/2/1988 then I should get 1, 2 and 1988 separately as an integer. How can I do this in iOS? I found the similar question but the method <code>descriptionWithCalendarFormat</code>: gives a warning and seems to be deprecated by now.</p>