1
我正在使用bootstrap-datepaginator Source。在bootstrap日期分頁程序中獲取所選日期
下面的代碼以這種格式而不是我想用此格式返回它Sun Aug 14 2016 00:00:00 GMT+0400
返回日期14/Aug/2016
<script>
$(document).ready(function() {
var options = {
selectedDate: '2016-01-01',
selectedDateFormat: 'YYYY-MM-DD'
}
$('#paginator').datepaginator(options);
$('#paginator').datepaginator();
$('#paginator').on('selectedDateChanged', function (event, date) {
// Your logic goes here
alert(date);
});
});</script>