This might be simple. I have searched, not found yet.
How do I convert the NSString @”20100216190205″ to an NSString of format @”yyyy-MM-dd HH:mm:ss”.
ie: @”2010-02-16 19:02:05″
EDIT:
I wanted to avoid using the NSDateFormatter to be more generic, for other situations.
Purely as an exercise in writing code:
But I agree: go easy on yourself, and use a date formatter for this.