1. 程式人生 > >bootstrap日期插件

bootstrap日期插件

opened app mat lac rip zh-cn nbsp pic body

技術分享圖片
 <link href="~/Content/BootStrap/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
    <script src="~/Content/BootStrap/js/moment-with-locales.js"></script>
    <script src="~/Content/BootStrap/js/bootstrap-datetimepicker.min.js"></script>
    <script src="~/Content/BootStrap/js/bootstrap-datetimepicker.zh-CN.js"></script>

 <input id="AppDate" name="AppDate" class="form-control size11" placeholder="申請日" value="@(Model.AppDate == null ? "" : ((DateTime)Model.AppDate).ToString("yyyy-MM-dd")) " />

<script>
        $(
‘#AppDate‘).datetimepicker( { autoclose: true, minView:"month", language: ‘zh-CN‘, format: "yyyy-mm-dd", todayBtn: true } ); </script>
View Code

bootstrap日期插件