Latest 0.1.1
Homepage https://github.com/killme3/YNMFormattedDate
License MIT
Platforms ios 8.0
Authors

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, [email protected]

License

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

Latest podspec

{
    "name": "YNMFormattedDate",
    "version": "0.1.1",
    "summary": "How to convert format Format Date",
    "description": "How to convert format Format Date, example dd/MM/YYYY to MMM dd, yyyy",
    "homepage": "https://github.com/killme3/YNMFormattedDate",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "killme3": "[email protected]"
    },
    "source": {
        "git": "https://github.com/killme3/YNMFormattedDate.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "YNMFormattedDate/Classes/**/*"
}

Pin It on Pinterest

Share This