• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting relative day-of-week name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting relative day-of-week name?


  • Subject: Getting relative day-of-week name?
  • From: Rick Mann <email@hidden>
  • Date: Wed, 24 Feb 2010 12:04:45 -0800

I'd like to take an NSDate and get a relative day-of-week name. For example, if today is 2/24, and the NSDate is some time on 2/23, it would be "Yesterday." If the NSDate were 2/22, it would be "Monday."

Is there an existing format specifier for this (fully localized, etc)? Or must I roll my own for this?

--
Rick

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Getting relative day-of-week name?
      • From: Jon Hull <email@hidden>
    • Re: Getting relative day-of-week name?
      • From: mmalc Crawford <email@hidden>
  • Prev by Date: Re: Deprecated APIs
  • Next by Date: Re: Odd NSString behavior
  • Previous by thread: Re: Odd NSString behavior
  • Next by thread: Re: Getting relative day-of-week name?
  • Index(es):
    • Date
    • Thread