how to convert from NSString to NSDate ?
it must be in yyyy-MM-dd HH:mm:ss this format when it converts from NSString to NSDate format
how to convert from NSString to NSDate ?
it must be in yyyy-MM-dd HH:mm:ss this format when it converts from NSString to NSDate format
For further ref. Check out:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/DataFormatting/Articles/dfDateFormatting10_4.html#//apple_ref/doc/uid/TP40002369-SW1
Use NSDateFormatter's dateFromString:
Made an NSString extension for that.
Thanks to NSDataDetector, it recognizes a whole lot of format.
Part of eppz!kit, grab the category NSString+EPPZKit.h from GitHub.