ho trovato questo in rete
Watch out when using strtotime() on a string that might begin with "0000-00-00" as MySQL stores "null" dates on a not-null date column. The value returned by strtotime("0000-00-00") varies by php version. Consider the following:
Codice PHP:
<?php
date('Y-m-d',strtotime('0000-00-00 00:00:00'));
// returns "1969-12-31" on the following versions:
// Win XP php 5.2.9-2
// Win 7 php 5.3.0
// RHEL 5 php 5.2.8
// but returns "-0001-11-30" on RHEL 5 php 5.2.10!
?>