I have the following code:
[ [NSDate date] descriptionWithLocale: @\"yyyy-MM-dd\" ]
I want it to return a date in the following format: \"2009-
Also note that for most cases, NSDateFormatter is to be preferred for its flexibility.
NSDateFormatter
There's also a significant performance benefit to be had from re-use of date formatters in many apps.