Model中时间格式化

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" })

猜你喜欢

转载自www.cnblogs.com/youmingkuang/p/8979159.html
今日推荐