Skip to content

yanaMyn/YNMFormattedDate

Repository files navigation

YNMFormattedDate iOS Swift

CI Status Version License Platform

How to convert format date, example from dd/MM/YYYY to MMM dd, yyyy

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Swift 3
  • iOS 8.0+

Installation

YNMFormattedDate is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'YNMFormattedDate'

Usage

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))")

Author

killme3, requiem_murder@yahoo.com

License

YNMFormattedDate is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published