If the value might not be set, you can test ttVendorRow.Date01.HasValue
or use the GetValueOrDefault
methods. But GetValueOrDefault
was added in C# 6, so you can only use it in client side stuff. I think the server side is on an even older version because string interpolation doesn’t work there.
1 Like