Posted By

code4mac on 09/18/12


nsstring NSDate

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


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.