masa2
14 Apr 2007, 1:10 AM
Hi,
I think there still is a problem with the form.DateField widget.
If I set the DateField by:
var df = new Ext.form.DateField({format: 'Y-m-d',minValue: '2000-01-01',
value: new Date()});
var date = new Date();
date.setFullYear(2007);
date.setDate(31);
date.setMonth(2);
df.setValue(date);
the widget shows 2007-03-01.
Marko
The reason for the problem is that the Date object is initialised with today's date April the 14th.
If the "April-Date-object" is set to 31 the day value is set to the 1st of the next month (May) automatically.
I think there still is a problem with the form.DateField widget.
If I set the DateField by:
var df = new Ext.form.DateField({format: 'Y-m-d',minValue: '2000-01-01',
value: new Date()});
var date = new Date();
date.setFullYear(2007);
date.setDate(31);
date.setMonth(2);
df.setValue(date);
the widget shows 2007-03-01.
Marko
The reason for the problem is that the Date object is initialised with today's date April the 14th.
If the "April-Date-object" is set to 31 the day value is set to the 1st of the next month (May) automatically.