Inusual behavior of calendar widget

I´m testing the calendar widget, and I don´t understand some of the results when I write a date. If I set the format date in:

<b:calendar mode="inline" format="dd-MMMM-yyyy"/>

If I write "05052008" with the keyboard, the results in the text box should be "05-May-2008", but the widget returns me "20-May5-2008". ¿?...

If I set the format date in:

<b:calendar mode="inline" format="dd-MMM-yyyy"/>

If I write "01012008" with the keyboard, the results in the text box should be "01-Jan-2008", but the widget returns me "01-May-120". ¿?...

calendar widget

Hi gdperellon,

As far as I know, the calendar widgets has many formats with its own description. You can have the description of each format in reference.chm.

Based on your post, you actually have a calendar with format="dd-MMM-yyyy" which means 01-May-2008. We can only write 01-May-2008 or 01may2008 with our keyboard. Because of this format, if you write 01052008 it will be rendered as 01-May-520. May is gotten because of the current month.

And calendar with format dd-MMMM-yyyy, we can only write 01april2008 or 01-april-2008 with our keyboard

01012008 will be only rendered correctly in a calendar with format dd-MM-yyyy.

Hope this helps,

Andys