Last active
March 9, 2017 11:01
-
-
Save dreampowder/7f0c4ca981db1d77bfbdd9e1b539fcb6 to your computer and use it in GitHub Desktop.
Relative Date formatter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (NSDateFormatter*)getRelativeDateFormatter{ | |
NSDateFormatter* df = [NSDateFormatter new]; | |
df.dateStyle = NSDateFormatterShortStyle; | |
df.timeStyle = NSDateFormatterShortStyle; | |
df.doesRelativeDateFormatting = YES; | |
return df; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment