views:

144

answers:

0

Hey everyone, I know this kind of questions have been asked a thousand times on this forum, but I have a slightly special case which I could really use some help with.

I have an NSString *expirationDate with the value = "2010-06-23 04:28:59.341818"

I need to convert to an NSDate object and compare against the current Date/Time. Can someone kindly explain how to do this?

I'm assuming its going to use some kind of NSDateFormatter object with YYYY-MM-DD HH:MM:SS... but how do i handle the remaining decimal portion?