SqlDateTime overflow.

  • Thread starter Thread starter Paperback Writer
  • Start date Start date
P

Paperback Writer

I need to insert null in a DateTime field and in the ASP.Net i got this
error:
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999
11:59:59 PM.

How to accomplish that ?
 
Did you try to insert System.DBNull.Value in ADO.NET ? If the columns allows
null values that´ll work for you.
 
Back
Top