NSDateFormatterFullStyle without year (NSDateFormatter)

Posted by Brian Halpin on Stack Overflow See other posts from Stack Overflow or by Brian Halpin
Published on 2012-09-21T15:29:46Z Indexed on 2012/09/21 15:37 UTC
Read the original article Hit count: 390

Filed under:
|
|

Using the user's currentLocale from the device, I want to have a date format exactly like the one generated for NSDateFormatterFullStyle minus the year:

[dateFormatter setDateStyle:NSDateFormatterFullStyle];

Friday, 21 September (2012)

I've noticed the iPhone app, Living Earth does this and works for all locales, so does the iPhone lock screen. A custom formatter such as, [dateFormatter setDateFormat:@"EEEE, MMMM"]; won't change with localisation.

Can anyone shed some light on how to accomplish this? None of the options for date style seem to do this.

Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ios