I can't remember the video (although there was some video about it) but I think the API you are thinking of is:
[NSDateFormatter localizedStringFromDate:date dateStyle:NSDateFormatterMediumStyle timeStyle:NSDateFormatterNoStyle]
I'm not sure if this API does relative date formatting and the frameworks mentioned by Midhun MP
take this a lot further
You can, of course, construct your own NSDateFormatter
and set the setDoesRelativeDateFormatting:YES
property to provide text like "Today" or "Tomorrow".
Example code is in the class reference below in setDoesRelativeDateFormatting:
.