Nullable Date Fields in Razor

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

Comments

Popular posts from this blog

Grouping with Data Entities

Linq - Data Entities - Records by Max Date with CASE

Linq Remove from list based on other table