Latest 1.1
Homepage https://github.com/devcarlos/NSDateUtils.swift
License MIT
Platforms ios 8.0, requires ARC
Authors

NSDateUtils.swift Badge w/ Version Platform Carthage compatible Build Status license MIT

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

Carthage

Add the following to your Cartfile and follow these instructions

github "devcarlos/NSDateUtils.print(longDate)"

CocoaPods

To integrate NSDateUtils into your project add the following to your Podfile:

platform :ios, '8.0'
use_frameworks!

pod 'NSDateUtils.swift'

License

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

Latest podspec

{
    "name": "NSDateUtils.swift",
    "version": "1.1",
    "summary": "NSDateUtils.swift is an extension with helper functions for NSDate written in Swift",
    "homepage": "https://github.com/devcarlos/NSDateUtils.swift",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Carlos Alcala": "[email protected]"
    },
    "social_media_url": "http://twitter.com/carlosalcala",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/devcarlos/NSDateUtils.swift.git",
        "tag": "1.1"
    },
    "source_files": "NSDateUtils/**/NSDateUtils.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This