Roo/form/DateField.js
authorAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 10:03:52 +0000 (18:03 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 10:03:52 +0000 (18:03 +0800)
Roo/form/DateField.js

index a4e3de2..abacd71 100644 (file)
@@ -260,7 +260,7 @@ dateField.setValue('2006-5-4');
             return value;
         }
         var v = Date.parseDate(value, this.format);
-         if (this.useIso) {
+         if (!v && this.useIso) {
             v = Date.parseDate(value, 'Y-m-d');
         }
         if(!v && this.altFormats){