Null Values in Date Fields

  • Thread starter Thread starter Andreas Aschauer
  • Start date Start date
A

Andreas Aschauer

Hello!

I tried to set the NULL Value in the property tab of the Schema Designer for
a DataTable field of type DateTime.
When i put somthing like 1.1.1900 there the Debugger tells me that not a
correct Date value ?
Even 1.1.1900 00:00:00 won't work.

How does the input have to look like ?

greets
Andy
 
Hi,

If you need to assign NULL, then you need to use DbNull.Value to do this,
not some sort of fake date value
 
1/1/1900 would be a good start.... not sure how that relates to your Null
issue however. Use DbNull.Value for that.
 
Back
Top