Posted By

code4mac on 09/18/12


Tagged

nsstring NSDate


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

hawk007


NSDate to NSString


 / Published in: Objective C
 

convert nsdate to nsstring format

  1. NSString *dateString = [NSDateFormatter localizedStringFromDate:[NSDate date]
  2. dateStyle:NSDateFormatterShortStyle
  3. timeStyle:NSDateFormatterFullStyle];
  4. NSLog(@"%@",dateString);

Report this snippet  

You need to login to post a comment.