[java] view plain copy
- <...bootstrap-datetimepicker.min.css>
- <...bootstrap-datetimepicker.min.js>
- <...bootstrap-datepicker.zh-CN.min.min.js>
- ...
- <input class="form_datetime form-controller" type="text" id="cashFlowBtime" e-required="true" placeholder="起始时间"
- name="btime" value="" maxlength="30" soze="30">
- <script type="text/javascript">
- var date= new Date();
- $(".form_datetime").datetimepicker({
- format:'yyyy-mm-dd',
-
autoclose:'true',
-
todayHignlight:true,
-
showMeridian:true,
-
pickerPosition:'bottom-left',
-
language:'zh-CN',
-
minView:2,
-
startView:2,
-
clearBtn:true,
-
todayBtn:false,
-
showInputs:false,
-
endDate:date
- })
- <script>
- 附上一个datetimepicker参数博文(需要年月日 时分秒)可以参考
- http://blog.csdn.net/hizzyzzh/article/details/51212867
- 大家可以参照一下博客进行学习:
-
http://blog.csdn.net/javaweiming/article/details/40978203
-
http://blog.csdn.net/u011127019/article/details/51725081
-
http://blog.csdn.net/wo541075754/article/details/51221415