新文章 网摘 文章 随笔 日记

MVC 在 TextBoxFor() 中显示格式化的日期

@Html.TextBoxFor(m => m.StartDate, 
    new { @Value = Model.StartDate.ToString("yyyy/MM/dd"), @class="datepicker" })
posted @ 2021-09-06 11:57  岭南春  阅读(108)  评论(0)    收藏  举报