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

NSDateFormatter fails


  • Subject: NSDateFormatter fails
  • From: "D. Felipe Torres" <email@hidden>
  • Date: Mon, 31 Mar 2014 14:56:02 -0300

Given the following code:

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)

For other strings from the same source it works, but i'm failing to see why
in this case fails.

Could someone enlighten me?

--
++++++++++++++++++++++++++
Diego Torres.
_______________________________________________

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>
  • Prev by Date: Re: Core animation layers work on 10.7 but not 10.8 or 10.9
  • Next by Date: Re: NSDateFormatter fails
  • Previous by thread: RE: Core animation layers work on 10.7 but not 10.8 or 10.9
  • Next by thread: Re: NSDateFormatter fails
  • Index(es):
    • Date
    • Thread