Why doesn't NSDateFormatter return a NSString?

Posted by TheLearner on Stack Overflow See other posts from Stack Overflow or by TheLearner
Published on 2010-05-31T14:32:49Z Indexed on 2010/05/31 15:03 UTC
Read the original article Hit count: 208

Filed under:

Why does this message not return a string:

NSDate *today = [NSDate date];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
NSString *formattedDate = (@"Date for today %@:", [dateFormatter stringFromDate:today]);

© Stack Overflow or respective owner

Related posts about objective-c