oguzhankircali
11/26/2018 - 6:39 PM

Date Format on MVC Model

Date Format on MVC Model

[DisplayFormat(DataFormatString = "{0:dd.MM.yyyy}")]
[Display(Name = "End Date", Prompt = "")]
[UIHint("DateBox")]
public DateTime? EndDate { get; set; }