• 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: Jens Alfke <email@hidden>
  • Date: Mon, 31 Mar 2014 11:21:23 -0700

Well, try parsing using -getObjectValue:forString:range:error: instead, so you get an error message.
Also, try setting the locale of the formatter to en_US_POSIX so you don’t get any localization effects.
(I just got both of these suggestions from “Parsing Date Strings” in Apple’s “Data Formatting Guide: Date Formatters”. Have you read it?)

—Jens
_______________________________________________

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