Hi Bob,
  Thanks for the reply. But it will be great if we can do something more
that what Javascript Date object does. Also the isoDate can't be used with
simple formats like isoDate('20061123') whereas the default Date can be. Is
there any reason on why the isoDate function is restricted to dates
separated by '-' character? The 8601 doesn't seem to specify any such
restrictions. Thanks again for your input and for such a great library!

~
Prathap

On 12/11/06, Bob Ippolito <[EMAIL PROTECTED]> wrote:
>
> It's not a bug, that's what the JavaScript Date object does. I don't
> see a particularly good reason to "fix" this.
>
> -bob
>
>
> On 12/11/06, Nirmal <[EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >   I noticed that the date library in MochiKit behaves differently,
> >
> >  isoDate('2006-34-34') gives Mon Nov 03 2008 00:00:00 GMT+0530 (India
> > Standard Time)
> >
> > The month and date values above are invalid. But it ads up to the date
> > value, its like find the date of the day that is 34 months and 34 days
> > after 2006-Jan'01. But the ISO 8601 spec specifies a limit on the
> > values ->
> >
> >  MM   = two-digit month (01=January, etc.)
> > DD   = two-digit day of month (01 through 31)
> >
> > So is this a bug in mochikit? I will be happy to fix it.
> >
> > ~
> > Prathap
> >
> >
> > > >
> >
>



-- 
பிரதாப் நிர்மல்
Web Applications Engineer
Google Online India Pvt. Ltd.
7th Floor, Jayabheri Silicon Towers,
Madhapur Road, Kondapur
Hyderabad - 500 032
mobile : +91 99856 34636

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to