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

index 561afba..579e9d4 100644 (file)
@@ -246,6 +246,10 @@ dateField.setValue('2006-5-4');
             this.hiddenField.value = this.formatDate(this.parseDate(date), 'Y-m-d');
         }
         Roo.form.DateField.superclass.setValue.call(this, this.formatDate(this.parseDate(date)));
+        // make sure the value field is always stored as a date..
+        this.value = this.parseDate(date);
+        
+        
     },
 
     // private