Roo/form/DateField.js
authorAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 09:19:06 +0000 (17:19 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 09:19:06 +0000 (17:19 +0800)
Roo/form/DateField.js

index 9dc9d1f..561afba 100644 (file)
@@ -254,6 +254,9 @@ dateField.setValue('2006-5-4');
             return value;
         }
         var v = Date.parseDate(value, this.format);
+         if (this.useIso) {
+            v = Date.parseDate(value, 'Y-m-d');
+        }
         if(!v && this.altFormats){
             if(!this.altFormatsArray){
                 this.altFormatsArray = this.altFormats.split("|");