diff --git a/doc.tpl b/doc.tpl index 2e9222a..22eb03e 100644 --- a/doc.tpl +++ b/doc.tpl @@ -367,7 +367,7 @@ jQuery('#_datetimepicker_weekends_disable').datetimepicker({
$.datetimepicker.setDateFormatter({
     parseDate: function (date, format) {
         var d = moment(date, format);
-        return d.isValid() ? d : false;
+        return d.isValid() ? d.toDate() : false;
     },
     
     formatDate: function (date, format) {