I have a date that I need to split in some components. for example
let components = NSCalendarUnit.CalendarUnitDay | NSCalendarUnit.CalendarUnitHour let date = c
Not sure which you want, but there are weekday, weekdayOrdinal, weekOfMonth and weekOfYear. (week has been deprecated.)
weekday
weekdayOrdinal
weekOfMonth
weekOfYear
week