Nullable Date Fields in Razor

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

Comments

Popular posts from this blog

Linq - Data Entities - Records by Max Date with CASE

Disable Button based on checked items in CheckboxList

Linq Remove from list based on other table