Force Null value to a DateTime property
Posted on 2004-10-20
I have a class into my asp.net project with two properties defined as datetime.
I need to force null value or blank into these two properties (not 01/01/1900):
I use System.DBNull but i can't use it because return an error, for example:
newActivation.beginDate = System.DBNull.Value;
the value of the property then is write into a datetime field in a SQL Server Table.
Can you help me?