CocoaPods trunk is moving to be read-only. Read more on the blog, there are 3 months to go.

NSDateUtils.swift 1.1

NSDateUtils.swift 1.1

TestsTested ✗
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2016
SPMSupports SPM ✗

Maintained by Carlos Alcala.



NSDateUtils.swift

NSDateUtils.swift is an extension with helper functions for NSDate written in Swift

Features

  • Swift 2+
  • Support many required functions for parsing dates
  • Extension for NSDate to use in any app
  • Easy installation and customization

Usage

import NSDateUtils

let date = NSDate().dateFromString("10/12/2013")

//using format: EE, LLL d yyyy, HH:mm
let longDate = date.convertToLongString()

//using format: yyyy-MM-dd
let shortDate = date.convertToString()

print(longDate)
print(shortDate)

Install (iOS 8+)

License

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