Quick tip: How to get year, month and day from NSDate

First you have to get NSDateComponents object with year, month and day units:

then extracting each value is simple:

Leave a Reply