/ Published in: Objective C
                    
                                        A name of a given day of the week.
With the week day x, build an NSDate for the first x in February 2011.
Format the NSDate so that the weekday name is generated.
Is this really necessary, or is it a tragically roundabout detour?
                With the week day x, build an NSDate for the first x in February 2011.
Format the NSDate so that the weekday name is generated.
Is this really necessary, or is it a tragically roundabout detour?
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 [dateComponents setWeekday: x]; [dateComponents setWeekdayOrdinal:1]; [dateComponents setYear:2011]; [dateComponents setMonth:2]; [format setDateFormat:@"EEEE"];
Comments
                    Subscribe to comments
                
                