Possible Duplicate:
Convert NSString of a date to an NSDate
I need some help with formatting dates.
I have a string in the format 2011-10-05
. How do i convert this NSString
into NSDate
object.
Furthermore I want to retrieve the day from the corresponding NSDate object.
I know I have to use a dateFormatter but I am not able to work around it. Help would be greatly appreciated.