📌  相关文章
📜  从 datetimepicker 获取值数据 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:00.493000             🧑  作者: Mango

代码示例1
var date = $("#datetimepicker1").data("datetimepicker").getDate(),
    formatted = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate() + " " + date.getHours + ":" + date.getMinutes() + ":" + date.getSeconds();
alert(formatted);