if (val.PropertyType == PropertyType.DateTime && (resolvedDate = DynamicValuesHelper.ConvertToDateTime(CultureInfo.InvariantCulture, val.Value)).HasValue)                 {                     <p class="grid_detail_value" name="tagField_@val.Name">@resolvedDate.Value.ToString()</p>                 }                 else                 {                     <p class="grid_detail_value" name="tagField_@val.Name">@