ReturnDate = DateTime.Now; 然后在需要显示它时对其进行格式化: @Html.Label(Model.ReturnDate.ToShortDateString()) 或者,如果您使用的是EditorFor: ...
確定! 回上一頁