Does the standard framework support time difference formatting and create a format that follows the regional settings? I know I can break it to NSDateComponents but then I will have to append the text and create different language support files myself. I’m wondering that there may be a way to formatting the date and make it follows the regional setting simple and similar to this…
dateFormat = [[[NSDateFormatter alloc] init] autorelease];
[dateFormat setDateStyle:NSDateFormatterMediumStyle]
thanks
you can turn on relative date formatting by doing:
this will give you date strings that look like “Yesterday”, “Today”, “Tomorrow” etc.
if that’s not enough, then this might be useful: http://zetetic.net/code/nsdate-helper
that NSDate category didn’t quite work for what i wanted, so i added my own function based on one that was in the category.. seems to work, but no guarantees 😉 of course this only gives you a bit of the information – it doesn’t give you locale formatting etc.