這是我的HTML和jQuery代碼。它沒有選擇所選日期,它只需要1970年1月1日1:00這種格式在XDSoft日期選擇器中。xdsoft拍攝此日期1970年1月1日1:00 AM不拍攝當前日期?
<input type="text" name="date-input" class="datepicker add-order span2" value="01-01-2016" id="datetimepicker">
<input type="text" name="time-input" class="datepicker add-order span2" value="10:10:00" id="datetimepicker_start_time">
$('#datetimepicker').datetimepicker({
format: 'd-m-Y',
formatDate: 'Y-m-d',
timepicker: false,
value:'01-01-2016'
});
$('#datetimepicker_start_time').datetimepicker({
startDate: '+1971/05/01', //or 1986/12/08
datepicker: false,
format: 'h:i',
step: 30,
value:'10:10:00'
});
@Sam Onela其從[這裏](http://xdsoft.net/)網站xdsoft插件不是引導插件 –
如若* *的startDate選項在日期選擇器設置(即$('#datetimepicker')')而不是(開始)時間選擇器(即'$('#datetimepicker_start_time')')?我看到[文檔中的該選項](http://xdsoft.net/jqplugins/datetimepicker/#starDate),但[示例](http://xdsoft.net/jqplugins/datetimepicker/#startdateex)未顯示按照它應該的方式工作。你購買了許可證嗎?如果是這樣,您可以請求支持,或[在回購上添加問題](https://github.com/xdan/periodpicker/issues?utf8=%E2%9C%93&q=startDate)。 –
@SamOnela它的免費插件,我解決了這個問題,謝謝先生 –