• 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: Sandor Szatmari <email@hidden>
  • Date: Mon, 23 Nov 2015 08:00:41 -0500

Alex,

Have you tried looking at NSDataDetector. http://nshipster.com/nsdatadetector/

Sandor

> On Nov 22, 2015, at 16:12, Alex Hall <email@hidden> wrote:
>
> Hey list,
> I’m using NSDateFormatter.dateFromString() to make a date from the date string in a tweet. However, it seems to be returning nil, and I’m not sure why. Is there something else I have to do, like tell the formatter what order to expect components to be in? The string is something like:
>
> "Sun Nov 22 21:00:39 +0000 2015”
>
> Thanks for any suggestions anyone has.
> _______________________________________________
>
> 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
_______________________________________________

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: AppleEvents: Send port for process has no send right, port=( port:37207/0x9157 rcv:1,send:0,d:0 limit:5) (findOrCreate()/AEMachUtils.cp #526)
  • Next by Date: Re: dateFromString won't accept this string:
  • Previous by thread: Re: dateFromString won't accept this string:
  • Next by thread: Re: dateFromString won't accept this string:
  • Index(es):
    • Date
    • Thread