mpacheco
29 Jun 2010, 7:12 AM
Hi,
I have an Ext.form.MonthField and is having an error when I select Feb month and the date is today (06/29) it automatically changes to March
Here is the code:
new Ext.form.MonthField({
fieldLabel: 'Periodo (Mes/Año)',
value: new Date().format('m/Y'),
format: 'm/Y',
id: 'periodo',
disabled: false,
minValue: new Date(2009,9,1),
//maxValue: new Date(2021,12,31),
allowBlank: false,
name: "periodo",
invalidText : "{0} debe ser mayor a {1}",
minText : "El periodo debe ser igual o posterior a {0}"
Any idea?
Please let me know if you need more code. I think that only fails when the date is greater than 28, because if I select 02/2012 works ok.
Thanks for your help,
Martin.-
I have an Ext.form.MonthField and is having an error when I select Feb month and the date is today (06/29) it automatically changes to March
Here is the code:
new Ext.form.MonthField({
fieldLabel: 'Periodo (Mes/Año)',
value: new Date().format('m/Y'),
format: 'm/Y',
id: 'periodo',
disabled: false,
minValue: new Date(2009,9,1),
//maxValue: new Date(2021,12,31),
allowBlank: false,
name: "periodo",
invalidText : "{0} debe ser mayor a {1}",
minText : "El periodo debe ser igual o posterior a {0}"
Any idea?
Please let me know if you need more code. I think that only fails when the date is greater than 28, because if I select 02/2012 works ok.
Thanks for your help,
Martin.-