hello all
I need to find the datediffernce between 2 strings lets say:
May 12 2003 and Apr 11 2003.
How do i do this?. i was able to convert these into unix time stampsusing mktime. now how do find the differnece?
Thanks Paras.
just substract the timestamp and you got the difference in seconds.
$date1=20030128173207; $date2=20030203161007;
echo "There are ".floor((date("U",$date2) - date("U",$date1)) / 86400)." days between the two dates specified.";