1-1-1900 is the equivilant of nothing for a date because of the way dates are stored by your database.
A date is stored as an offset from a particular day.
So your database uses 1-1-1900 as this particular day. So, if you stored today's date in your database, the value actually stored would be the amount of time to add to 1-1-1900 to reach today's date.
if the datatype is a Datetime datatype then it will accept NULLs, jsut make sure if your clearing out a certain entry that you reset that feild to NULL instead of "". if this doesn't work, then it might be an issue with the platform your working on. SQL server enterprise manager is the one i work on and will allow NULLs in a datetime field
--there are 10 types of people in this world. those who know binary, and those who don't.--
1-1-1900 is the default value that sql server uses when you dont enter any value for your date field. You have to specify that you need to either enter NULL or "".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.