From: Gavin Kistner Date: 2004-01-25T03:29:56+09:00 Subject: Re: Parse Date bug? Yukihiro Matsumoto wrote: > >Parse Date returns illegal values in a date. Ex: > ParseDate is easily fooled by incomplete input. I think the point is that it's understandable that it may be fooled. However, once it has attempted to create the answer, it should at least ensure that the month is valid (jan-dec, not month "20") and that the number of days is allowed within that month in that year. I myself am a fan of the way Javascript handles invalid dates. For example: someDate = new Date("9/31/2003"); someDate.toString(); => "Wed Oct 01 2003 00:00:00 GMT-0600 (MDT)" Basically, seconds, minutes, hours, days, and months which are larger than a legal value are modded to the valid range, and then increment the next larger unit. -- (-, /\ \/ / /\/