When the computer's date is January 31 of any year, it happens a bug in the 'datefield' when the attribute 'format' is 'm/Y'. If you select any day of February, it changes to 31 March. This happens all the months that do not end with 31 (February, April, June, September and November). In testing, I changed the date of my machine to 31/01/2011. Can anyone help? Following is the code used.
Hello, thanks for the reply.
The format 'm/Y' returns:
'm': Numeric representation of a month, with leading zeros (01 to 12)
'Y': A full numeric representation of a year, 4 digits (Examples: 1999 or 2003)
- Change the date of your system, for example, January 31, 2011.
- Create a date field as the code I posted.
- Select any day in the calendar month of February 2011.
The value of the field should be shown in the '02/2011'. Right? But it shows '03/2011' which corresponds to the month of March. If I selected February because it showed in March?
Do you understand the problem now? Is it a bug? Is there any override to correct this behavior?
Thank you again.