Display blank value if date column contains NULL
Hi.In my mvc application, I have modal as,
public class Leave
{
public DateTime CreatedDate{ get; set; }
}
In view, code is like,
@Html.DisplayFor(modelItem => item.CreatedDate)
Here, I have an issue, if this date is NULL, it display value, 01-01-0001.
Here, I want to keep column value as blank. How can i do that without changing datatype of column.