Nullable Date Fields in Razor

    @if(Model.ExpirationDate.HasValue) {
              Model.ExpirationDate.Value.ToShortDateString();
       
            }

Comments

Popular posts from this blog

Linq Exclude from separate list

Meta Data - Annotating Models