I've a NSDateFormatter set like this:
YYYY/MM/dd HH:mm:ss
I can convert it from NSDate
to NSString
and from NSString
to NSDate
.
But what I want is to get the NSDate as I formatted it.
I thought about converting it to NSString
then convert back to NSDate
but this way is just awful, I'm sure there is a simpler way, right?