Today is the 29 March 2011 (french) and i have a datefield with format: m/Y.
I put the value : '02/2011' and the datefield changes my value to '03/2011' because the day is not defined and the datefield adds the day "29" to my value "02/2011". But because the 29/02/2011 does not exist, the datefield changes it to '29/03/2011' -> '03/2011'.
I don't want the day in my datefield and I don't want the datefield to change my date. If there is a date problem, I just want an error message.
Quite alright. I'm just glad someone else noticed it. You did give me a hint that allows me to work around the issue (though it works for me because each application is pretty self contained. For bigger projects this probably wouldn't work.) What I'm doing is setting the Date.default.d = 15 so it's not using todays date. This guarantees the day is in the current month.