examples/bootstrap/calendar.js
authorEdward <edward@roojs.com>
Thu, 6 Mar 2014 08:24:39 +0000 (16:24 +0800)
committerEdward <edward@roojs.com>
Thu, 6 Mar 2014 08:24:39 +0000 (16:24 +0800)
examples/bootstrap/calendar.js

index f1f1196..9fd2921 100644 (file)
@@ -64,9 +64,9 @@ Roo.example.calendar = new Roo.XComponent({
                                                 Roo.log('beforeload');
                                                 Roo.log(_this);
                                                 o.params = o.params || {};
-                                                var d = new Date().format('Y-m');
+                                                var d = new Date().format('Y-m-d');
                                                 if(_this.cal){
-                                                    d = typeof(_this.cal.activeDate) == 'string' ? _this.cal.activeDate : _this.cal.activeDate.format("Y-m");
+                                                    d = typeof(_this.cal.activeDate) == 'string' ? _this.cal.activeDate : _this.cal.activeDate.format("Y-m-d");
                                                 }
                                                 o.params._activeDate = d
                                             }