Skip to content

cwagdev/NSDateExt

Repository files navigation

Installation

  1. Drag NSDateExt.swift to your project

Usage

Creating and manipulating dates

let yesterday = NSDate.yesterday()
let twoWeeksFromYesterday = yesterday + 2.weeks

Comparing dates

yesterday.isToday // false
yesterday.isYesterday // true

Displaying dates

yesterday.mediumDateString // "Dec 9, 2014"

About

NSDate Swift Extension inspired by https://github.com/erica/NSDate-Extensions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published