mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
fixed sync of input value to calendar when using MomentJS
This commit is contained in:
parent
2266845f52
commit
4e3fc0b0ad
2
doc.tpl
2
doc.tpl
@ -367,7 +367,7 @@ jQuery('#_datetimepicker_weekends_disable').datetimepicker({
|
||||
<pre><code data-language="javascript">$.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) {
|
||||
|
Loading…
Reference in New Issue
Block a user