MVC 中 @Html中的时间格式化
@Html.TextBoxFor(model => model.StartTime, "{0:yyyy-MM-dd HH:mm:ss}", new { @class = "form-control", @onclick = "laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" }) @Html.TextBoxFor(m=>m.jcsj, "{0:yyyy-MM-dd}", new { @class = "layui-input test-item" })