• 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: NSDateFormatter fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDateFormatter fails


  • Subject: Re: NSDateFormatter fails
  • From: "D. Felipe Torres" <email@hidden>
  • Date: Mon, 31 Mar 2014 15:13:01 -0300

I just pasted it from CodeRunner.
I changed 00 for 0X where X is a number and it worked.


On Mon, Mar 31, 2014 at 3:09 PM, Jens Alfke <email@hidden> wrote:

>
> On Mar 31, 2014, at 10:56 AM, D. Felipe Torres <email@hidden>
> wrote:
>
> NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
> [formatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss"];
> NSLog(@"Date from String: %@", [formatter dateFromString:@
> "2013-09-08T00:36:40"]);
>
> The log produces: Date from String: (null)
>
>
> It worked for me, in a Mac build running on 10.9.2:
>
> *2014-03-31 11:07:11.366 xctest[16765:303] Date from String: 2013-09-08
> 07:36:40 +0000*
>
> Are you running that exact code shown in your email? Or might your date
> string have a control character in it by accident?
>
> --Jens
>



--
++++++++++++++++++++++++++
Diego Torres.
Phone (Mobile Germany): +49 157 30070985
Phone (Landline Chile): +56 2 29790978
Web: dtorres.me
_______________________________________________

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: NSDateFormatter fails
      • From: Jens Alfke <email@hidden>
References: 
 >NSDateFormatter fails (From: "D. Felipe Torres" <email@hidden>)
 >Re: NSDateFormatter fails (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: NSDateFormatter fails
  • Next by Date: Re: NSDateFormatter fails
  • Previous by thread: Re: NSDateFormatter fails
  • Next by thread: Re: NSDateFormatter fails
  • Index(es):
    • Date
    • Thread