I am using swift2.
I used this code:
let calendar = NSCalendar.currentCalendar()
let components = calendar.components(.CalendarUnitMonth | .CalendarUnitDay, fromDate: theDate)
I am getting this error: Could not find member 'CalendarUnitMonth'