Forum Moderators: coopster
So i get the shipdate from the data base and enter the ruturned date.
$SHIPDATE = '2006-05-10';
$RETURNDATE = '2007-02-28';
$INWAR = ($SHIPDATE - $RETURNDATE);
ECHO "$INWAR";
What is returned is -1.
I think it is only using the year out of the date and not all of it. Do i have to convert the date into another format. If so how?