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

Re: Validation Week


  • Subject: Re: Validation Week
  • From: Pierre Bernard <email@hidden>
  • Date: Thu, 20 Sep 2007 00:33:24 +0200

Java's SimpleDateFormat can be set not to allow for lenient parsing. Unfortunately NSTimestampFormatter lacks this ability.

I have created a subclass of NSTimestampFormatter which for parsing uses an instance of SimpleDateFormat to create a Date which I then convert to an NSTimestamp

IIRC SimpleDateFormat is not thread safe. Oh joy!

Pierre Bernard
Houdah Software s.à r.l.

On Sep 19, 2007, at 10:54 PM, James Cicenia wrote:

OK -

Now I am trying to validate dates. I hate dates. I especially hate java dates, but I digress.

So now I have this little wizard component that asks for a date. It has a date formatter.

However, someone could type in 13/33/09 and it will take it, albeit change it to something else.

What is the best way to ensure a proper date is submitted or else messaged back to them?

Thanks
James Cicenia
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

- - - Houdah Software s. à r. l. http://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Powerful Spotlight frontend



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Validation Week
      • From: Chuck Hill <email@hidden>
References: 
 >Validation Week (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: Validation Week
  • Next by Date: Re: Validating a percentage?
  • Previous by thread: Re: Validation Week
  • Next by thread: Re: Validation Week
  • Index(es):
    • Date
    • Thread