• 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
Re: dateFromString won't accept this string:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dateFromString won't accept this string:


  • Subject: Re: dateFromString won't accept this string:
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 22 Nov 2015 14:06:37 -0800

> On 2015 Nov 22, at 13:12, Alex Hall <email@hidden> wrote:
>
> Is there something else I have to do, like tell the formatter what order to expect components to be in?

Yes, and more.  You must set the dateFormat property of your date formatter exactly.

Documentation of property ‘dateFormat’ refers you to click on the “Date Formatting Guide”.  From there, you click on “Date Formatters”.  Once there, scroll down to "Use Format Strings to Specify Custom Formats” and what to your wondering eyes does appear but a list of links to Unicode Consortium standards.  Click on the one for the OS version you are targetting.  Once there, read the fine print carefully.  After 20 minutes or so you should have it working :)


_______________________________________________

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: dateFromString won't accept this string:
      • From: Alex Hall <email@hidden>
References: 
 >dateFromString won't accept this string: (From: Alex Hall <email@hidden>)

  • Prev by Date: Re: Bunch of CoreData based NSDocument questions.
  • Next by Date: Re: dateFromString won't accept this string:
  • Previous by thread: dateFromString won't accept this string:
  • Next by thread: Re: dateFromString won't accept this string:
  • Index(es):
    • Date
    • Thread