jquery-datetimepicker 用法

需要引用的文件 可以到这里http://www.bootcdn.cn/jquery-datetimepicker/去引用或者下载

<link href="//cdn.bootcss.com/jquery-datetimepicker/2.5.4/build/jquery.datetimepicker.min.css" rel="stylesheet">
<script src="//cdn.bootcss.com/jquery-datetimepicker/2.5.4/build/jquery.datetimepicker.full.min.js"></script>

当然 jquery也必须先引入
调用:

<script type="text/javascript"> 
            $(function () {
                $.datetimepicker.setLocale('zh');
                $('#datetimepicker1').datetimepicker({format:"Y-m-d",timepicker:false});
                $('#datetimepicker2').datetimepicker({format:"Y-m-d",timepicker:false});
            });
</script>

具体用法(可用的参数:https://xdsoft.net/jqplugins/datetimepicker/)