Thursday 27 June 2013

VB.NET - How to fix error vb.net Cannot cast DBNull.Value to type 'System.DateTime'. Please use a nullable type.

Replace
TransactionDate Or b.Field(Of DateTime)("tdate") Is Nothing)
With
TransactionDate Or b.Field(Of DateTime?)("tdate") Is Nothing)

No comments:

Post a Comment