How to create an NSDate object from a string such as 22/04/2013
Here’s how we can do this, with the help of our old friend the NSDateFormatter: // here we have a date NSString *dateString = @”11/01/1989″; // convert it into an NSDate object NSDateFormatter *formatter = [[NSDateFormatter alloc]init]; [formatter setDateFormat:@”dd/MM/yyyy”]; NSDate *theDate = [formatter dateFromString:dateString]; // so what is that? NSLog(@”Your Date Object is %@”, theDate); […]