Page 1 of 1

can any one help?

Posted: Sun Jan 30, 2005 11:55 pm
by syno
hi
$date2 = date("m");

echo $date2 gives me the value of 01 if ran in jan

what i need to do is add to that. for example

$date3 = $date2 +1;

hoping that when i echo $date3; it will give me the value of 03 but it only gives me the value of 3 and i need it feed back 03 not just 3

any one help? thanks

Posted: Mon Jan 31, 2005 12:01 am
by feyd

Code: Select all

date('m',strtotime('+1 month'));

Posted: Mon Jan 31, 2005 12:10 pm
by syno
thanks !!!