ios - Can't put a single quote before the year in NSDateFormatter -
i want format date follows:
mon, apr 14 '09 the dateformat i'm setting nsdateformatter eee, mmm dd 'yy shows:
mon, apr 14 'yy if take out single quote before year, last 2 digits of year it's not obvious it's year because single quote gone. help?
i've tried putting ''', '\'', , '\''' before 'yy' doesn't work, although last 2 produced 'yy , ''09
from http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#date_format_patterns:
in patterns, 2 single quotes represents literal single quote, …
in case:
[formatter setdateformat:@"eee, mmm dd ''yy"];
Comments
Post a Comment