|
Yes, but that's not what the code I commented on was doing.
It was doing new Date("2006", "03",
"22"); I was simply trying to point out that it would be more
efficient to do new Date(2006, 3, 22); rather than having "2006" coerce to 2006,
"03" coerce to 3, and "22" coerce to 22. - Gordon From: I'm sure it's doing
slightly more than an implicit coercion, when you do something like: On 3/4/06, Gordon
Smith <[EMAIL PROTECTED]>
wrote: Sure, it's perfectly happy to coerce a string like
"2006" to the number 2006. But if you pass 2006 it wouldn't have to
coerce anything. - Gordon
|
- RE: [flexcoders] AS3 Date month starting at 0? Gordon Smith

