in reply to Re: perl dates into string into SQL
in thread perl dates into string into SQL
Don't do that. If the original values are NULL, then you should insert NULL into the new field. This is accomplished by inserting undef instead of a string. Having a bogus value "1900-01-01" is dangerous because it breaks the assumptions people and code make about valid values.