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

NSDateFormatter returns nil


  • Subject: NSDateFormatter returns nil
  • From: Kristof Van Landschoot <email@hidden>
  • Date: Fri, 12 Feb 2010 19:16:25 +0100

Why is lDateFormatted nil on iPhone simulator 3.1.2 after executing
this piece of code?

     NSString *lDateString = @"Wed, 17 Feb 2010 16:02:01";
     NSDateFormatter* dateFormatter = [[[NSDateFormatter alloc] init]
autorelease];
     [dateFormatter setDateFormat:@"EEE, dd MMM yyyy hh:mm:ss"];
     NSDate *lDateFormatted = [dateFormatter dateFromString: lDateString ];

Any ideas appreciated, Thanks
Kristof
_______________________________________________

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 returns nil
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Guidance on use of Application Support folder
  • Next by Date: Re: Guidance on use of Application Support folder
  • Previous by thread: Re: MPMediaPlayerContoller questions (2)
  • Next by thread: Re: NSDateFormatter returns nil
  • Index(es):
    • Date
    • Thread