How is it possible to convert a string to an NSDate
on iOS?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- back button text does not change
- iOS (objective-c) compression_decode_buffer() retu
- how to find the index position of the ARRAY Where
相关文章
- 现在使用swift开发ios应用好还是swift?
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- didBeginContact:(SKPhysicsContact *)contact not in
- Custom Marker performance iOS, crash with result “
Hope this will help you.
You'll want to take a look at NSDateFormatter. Determine the format of the date string and then use
dateFromString:
to convert the string to an NSDate object.A simple approach even if you have sqlite DB:
The output for this example:
Aug 3, 2015, 12:27:50 PM
My working version in Swift