Roo/DatePicker.js
authorAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 09:05:43 +0000 (17:05 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 09:05:43 +0000 (17:05 +0800)
Roo/DatePicker.js

index 95e764b..555856e 100644 (file)
@@ -171,7 +171,7 @@ Roo.extend(Roo.DatePicker, Roo.Component, {
     setValue : function(value){
         var old = this.value;
         if (typeof(value) == 'string') {
-            value = Date.parseDate(value, 'Y-m-d');
+            value = Date.parseDate(value, this.format);
         }
         
         this.value = value.clearTime(true);