This does not work... I want to take a birthdate and print how many more days until next birthday.
$today = time(); $bd = strtotime($bd_date); $sec = ($today-$bd); $day = ($sec/60/60/24); $remain2 = ($day%365.25); $remain = ($remain2*365); $older2 = (365-$remain); $older = floor($older2);
TIA, Jim
Jim, have you tried breaking it down and echoing the variables each time, to see if they are what you assume they should be along each way? Try setting the bd_date to yesterday, then running your code like that.
good luck, Eric