format should be HH for 24 hours even you are getting values only for 12 hours.
frmt1.dateFormat = "MMM, dd yyyy HH:mm a"
More Related Contents:
- String extensions toDate() is crash some device
- Date Format in Swift
- DateFormatter’s returns nil for specific date strings without time in Swift
- Convert string with unknown format (any format) to date
- 1st april dates of 80s failed to parse in iOS 10.0
- swift NSDateFormatter not working
- Get current iPhone device timezone date and time from UTC-5 timezone date and time iPhone app?
- Convert date string swift
- How do I convert a date/time string into a different date string?
- Is it possible to allow didSet to be called during initialization in Swift?
- How do you create a Swift Date object?
- How to save an array of objects to NSUserDefault with swift?
- how to use writeToFile to save image in document directory?
- How to use generic protocol as a variable type
- How to get height of Keyboard?
- How to open file and append a string in it, swift
- Dynamic Height Issue for UITableView Cells (Swift)
- AlertController is not in the window hierarchy
- custom interactive transition animation
- (Swift) Storing and retrieving Array to NSUserDefaults
- ld: framework not found Parse Xcode 7 beta
- How to post nested json by SwiftyJson and Alamofire?
- How can I change height of Navigation Bar – Swift 3
- UIApplication.registerForRemoteNotifications() must be called from main thread only
- How to embed a Youtube video into my app?
- iOS TableView reload and scroll top
- How to copy text to clipboard/pasteboard with Swift
- GM release of Xcode 6 compile
- Rotation only in one ViewController
- Difference between static function and singleton class in swift [closed]