<input placeholder="请选择出生日期" name="birth_time" type="text" id='datetime-picker' />
let allTime = '';
var myDate = new Date();
//let CreateDateLessD = myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate()
$("#datetime-picker").datetimePicker({
times: function () {
return [
];
},
title: '出生日期',
// min: CreateDateLessD,
onChange: function (picker, values, displayValues) {
allTime = values;
let tempTime = values[0]+'-'+values[1]+'-'+values[2];
$("#datetime-picker").html(tempTime);
}
});