How to convert format date, example from dd/MM/YYYY to MMM dd, yyyy
To run the example project, clone the repo, and run pod install
from the Example directory first.
- Swift 3
- iOS 8.0+
YNMFormattedDate is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'YNMFormattedDate'
add YNMFormattedDate to your project. reference http://docs.onemobilesdk.aol.com/ios-ad-sdk/adding-frameworks-xcode.html
import YNMFormattedDate
var formatDate = YNMFormattedDate()
let dateNow = self.formatDate.formattedDateFromString(dateFormat: "dd/MM/yyyy", dateString: "24/06/2018", withFormat: "MMM dd, yyyy")
print("today is => \(String(describing: dateNow))")
killme3, requiem_murder@yahoo.com
YNMFormattedDate is available under the MIT license. See the LICENSE file for more info.