i need to perform an operation (in this case DATEDIFF()) on 2 dates. But at least one of those dates is incomplete.
For example: DATEDIF('2010-01-00','2010-02-01') OR DATEDIF('2010-01-00','2010-02-00') will return NULL
Indeed, in http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_datediff, the manual, it says DATEDIF can't handle incomplete dates, as all the date arithmetic functions.
As i can't,don't want to change my database and i really need to do this operation, do you know a way to do it, a trick?
I ask in general even if my actual issue is to perform this DATEDIF.