bootstrap日期插件

 <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

 

posted @ 2018-01-17 14:36  连先森  阅读(100)  评论(0编辑  收藏  举报