Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. -(NSString *)sectionDateFormatter
  2. {
  3. NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
  4. [dateFormatter setDateFormat:@"d MMMM yyyy"];
  5.  
  6. dateFormatter.timeZone = [NSTimeZone timeZoneWithAbbreviation:@"GMT"];
  7.  
  8. NSDate *thisDate = self.dates.dateOfEvent;
  9. NSString *stringDate = [dateFormatter stringFromDate:self.dates.dateOfEvent];
  10. NSLog(@"[Transaction] The NSDate of self.dates.dateOfEvent = %@", thisDate);
  11. NSLog(@"[Transaction] The NSDate converted into a string = %@", stringDate);
  12.  
  13. return [dateFormatter stringFromDate:self.dates.dateOfEvent];
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement