Right, SimpleDateFormat isn't thread safe. I've heard
recommendataions to use joda time instead (http://joda-
time.sourceforge.net/)
Seems like it takes some of the ugliness out of dealing with dates
(haven't used it personally, but plan to)
I think it's probably a good fit for what
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.
Hello James;
For formatter handling, you might like to check out the javadoc for...
java.text.Format
...and then the LEDataQuantityFormat in my lejstuff library. You
can hook these guys up to the formatter binding on something like
the WOString element and it will transform the
On 19-Sep-07, at 4: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
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
On Sep 19, 2007, at 1:54 PM, James Cicenia wrote:
OK -
Now I am trying to validate dates. I hate dates. I especially hate
java dates, but I digress.
For what little comfort it might be, those are my exact sentiments!
Chuck
So now I have this little wizard component that asks for a