Hi All,
Maybe a simple fix for this simple script but my issue is that I have a calendar that displays dates three months in advance but at the end of every month is always messes up. I want to try to fix this on my own and i think i have it but i just need a little extra help.
Simple script here:
<?php
$d=date("m", strtotime("+1 months"));
$d1=date("m", strtotime("+2 months"));
echo $d;
echo $d1;
?>
Problem is that it is December now so 12 and when i echo this i get 0103, whereas i thought it should be 0102.
Any ideas??
Thanks in advance!!