Re: [flexcoders] Bug in Date class when using strings in constructor, with test case

2006-10-09 Thread Tom Chiverton
On Tuesday 03 October 2006 16:57, Tom Chiverton wrote: > "10 Dec 2006" is fine. > "10 dec 2006" isn't. > "Dec 10 2006" is fine. > "dec 10 2006" isn't. > "10 December 2006" isn't. > A dotted triplet (2.2.06) isn't. Right, I've put the code to a working date string parser up on my blog, http://thef

[flexcoders] Bug in Date class when using strings in constructor, with test case

2006-10-03 Thread Tom Chiverton
> Compile up the following Flex 2 app, and enter It gets better*. "10 Dec 2006" is fine. "10 dec 2006" isn't. "Dec 10 2006" is fine. "dec 10 2006" isn't. "10 December 2006" isn't. A dotted triplet (2.2.06) isn't. -- Tom Chiverton, writing a date/time parser tommorrow :-( ***

[flexcoders] Bug in Date class when using strings in constructor, with test case

2006-10-03 Thread Tom Chiverton
Compile up the following Flex 2 app, and enter 22/3/06 in the top box, then press the parse button. I'm in the UK (where dates go dd/mm/yy) and would expect the answer to be 22nd March 2006, not 3rd October 1907 (I'm guessing this is 0006+22 months+3 days). But even in the US (where dates go mm/