Código PHP:
// Texto
$target=mktime(0, 0, 0, 1, 1, 2011);
$diff = 0;
//$diff=$target–time();
/*$days=floor($diff/86400);
echo $days;*/
echo "[1]: " . is_string($target) . " - [2]: " . is_string(time()) . "<br />\n";
if(!is_string($target) && !is_string(time())){
$numtime = time();
echo "NINGUNA ES STRING " . $target . "-" . $numtime . "<br />";
// echo "La diferencia es = " . $diff;
settype($target, "integer");
settype($numtime, "integer");
$diff = $target – $numtime;
echo "La diferencia es = " . $diff;
}
echo date("M-d-Y", mktime(0, 0, 0, 12, 32, 1997));
echo date("M-d-Y", mktime(0, 0, 0, 13, 1, 1997));
echo date("M-d-Y", mktime(0, 0, 0, 1, 1, 1998));
echo date("M-d-Y", mktime(0, 0, 0, 1, 1, 98));
Alguna ayuda por favor