WD日历日期选择器更改日期格式

时间:2014-05-15 06:36:33

标签: jquery datepicker

$("#stpartdate").datepicker({ 
                        picker: "<button class='calpick'></button>", 
                        onReturn:function(d){
                                   $("#stpartdate").val(d.Format("m/d/Y"));
                                  $("#etpartdate").val(d.format('m/d/yy'));
                                  } 
                        });

以上代码显示以下错误,

TypeError: d.Format is not a function
$("#stpartdate").val(d.Format("m/d/Y"));

任何帮助

0 个答案:

没有答案