in my php script:
$today = date("Y/m/d");
$arrival = $T26;
i need to calculate 14days before the arrival date.
ive got: $prior = date("$T26", strtotime('-14 days'));
i realise that that is wrong because im putting the T26 variable in the date format place but im not sure what to put??
thanks!!!
by the way its linked to a mysql db so field T26 is in the format yyyy-mm-dd. THANKS!!!
ive now got:
$fortnight = mktime(0,0,0,date("m"),date("d")-14,date("Y"));
echo "2 weeks ago is ".date("Y/m/d", $fortnight);
but i still am not sure where to put the $T26 ??? to make the date the arrival date not todays date
$today = date("Y/m/d");
$arrival = $T26;
i need to calculate 14days before the arrival date.
ive got: $prior = date("$T26", strtotime('-14 days'));
i realise that that is wrong because im putting the T26 variable in the date format place but im not sure what to put??
thanks!!!
by the way its linked to a mysql db so field T26 is in the format yyyy-mm-dd. THANKS!!!
ive now got:
$fortnight = mktime(0,0,0,date("m"),date("d")-14,date("Y"));
echo "2 weeks ago is ".date("Y/m/d", $fortnight);
but i still am not sure where to put the $T26 ??? to make the date the arrival date not todays date