Hiding the default value for a date

前端 未结 3 2044
感情败类
感情败类 2021-01-20 22:48

My View Model:

public partial class FileTransferFilterCriteriaViewModel
{
    public string Fice { get; set; }
    public string SourceEmail { get; set; }
    pu         


        
3条回答
  •  既然无缘
    2021-01-20 23:27

    Everything is working perfectly. You are not fetching any data from the database though (as evidenced by passing in a newly instantiated view model return View(new FileTransferFilterCriteriaViewModel())). You should consider doing that inside of your controller's action method. To get a shorter date format, use @Html.TextBoxFor(x =>x.Criteria.FromDate.ToShortDateString())

提交回复
热议问题