bootStrap日期控件的使用

时间:2022-12-27 20:15:03
[java] view plain copy
  1. <...bootstrap-datetimepicker.min.css>
  2. <...bootstrap-datetimepicker.min.js>
  3. <...bootstrap-datepicker.zh-CN.min.min.js>
  4. ...

  5. <input class="form_datetime form-controller" type="text" id="cashFlowBtime" e-required="true" placeholder="起始时间"
  6. name="btime" value="" maxlength="30" soze="30">
  7. <script type="text/javascript">
  8. var date= new Date();
  9. $(".form_datetime").datetimepicker({
  10. format:'yyyy-mm-dd',
  11. autoclose:'true',
  12. todayHignlight:true,
  13. showMeridian:true,
  14. pickerPosition:'bottom-left',
  15. language:'zh-CN',
  16. minView:2,
  17. startView:2,
  18. clearBtn:true,
  19. todayBtn:false,
  20. showInputs:false,
  21. endDate:date
  22. })
  23. <script>
  24. 附上一个datetimepicker参数博文(需要年月日 时分秒)可以参考
  25. http://blog.csdn.net/hizzyzzh/article/details/51212867
  26. 大家可以参照一下博客进行学习:
  27. http://blog.csdn.net/javaweiming/article/details/40978203
  28. http://blog.csdn.net/u011127019/article/details/51725081
  29. http://blog.csdn.net/wo541075754/article/details/51221415