Originally posted by adrian_quah
Thanks Lars Berg,
what i did was to compare the date returned...if it was 'Jan 1 1900 12:00AM', i'd have PHP display it as nothing..but if u were to query the db from SQL server's enterprise manager, u'd still see the 'Jan 1 1900 12:00AM'..
works so far 😃
First, you should be able to change the default with some kind of "alter table alter column x set default NULL" or something similar.
Then you can throw an update at the table:
update table x set date = NULL where date='an 1 1900 12:00AM';
And you won't have to do in PHP what your database should be doing.