Hi

How would I handle this.

The code is below

DateTime invoicedate = ((DateTime)invoiceReader["inv_date"]);

If the inv_date is returned NULL from the database I get the following error.

System.InvalidCastException: Specified cast is not valid.

Any ideas how to resolve this error?

VK