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
can any one help?
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
date('m',strtotime('+1 month'));