Date Help

From: Date: Wed, 07 Mar 2001 18:18:53 +0000
Subject: Date Help
Groups: php.db 
Request: Send a blank email to php-db+get-7167@lists.php.net to get a copy of this message
When I want to subtract a day from a date, and pass the date to a function that will do the subtraction and then return the new value, so why does php sometimes subtract the year, instead of the day? I say sometimes, because I have other identical functions that work perfectly. Does php not pass the data type along with the variable? function subtract_a_day($datetoget) { $datetoget=($datetoget-1); return_date($datetoget); }

« previous php.db (#7167) next »