Skip to content

Custom formatter for converting an NSDate to a Relative Time String

Notifications You must be signed in to change notification settings

deisterhold/DERelativeDateFormatter

Repository files navigation

DERelativeDateFormatter

Custom formatter for converting an NSDate to a String (See below).

Example

Included is an example app that utilizes a table view to displays dates with a custom header.

To use in your project, all that is needed is to add DERelativeDateFormatter.swift then:

let dateFormatter = DERelativeDateFormatter()
let date = NSDate()

let dateString = dateFormatter.stringFromDate(date)

Screenshot

alt text

About

Custom formatter for converting an NSDate to a Relative Time String

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages