 <pre><code>-(NSString *) stringFromDate:(NSDate *) date{ NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setTimeStyle:NSDateFormatterShortStyle]; [dateFormatter setDateStyle:NSDateFormatterMediumStyle]; [dateFormatter setLocale:[NSLocale currentLocale]]; NSString *dateString = [dateFormatter stringFromDate:date]; [dateFormatter release]; return dateString; } -(NSDate *) dateFromString:(NSString *) dateInString{ NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setTimeStyle:NSDateFormatterShortStyle]; [dateFormatter setDateStyle:NSDateFormatterMediumStyle]; [dateFormatter setLocale:[NSLocale currentLocale]]; NSDate *dateFromString = [dateFormatter dateFromString:dateInString]; [dateFormatter release]; return dateFromString; } </code></pre> <p>I hope this helps.</p>