Forum Moderators: coopster
Was wondering if anyone could help me. I have a small problem with dates appearing incorrectly and I don't know if anyone can see anything wrong.
$bm = "08"; // month of Aug
$by = "2007"; // year$cm = date('m'); // current month
$cy = date('Y'); // Current Year
echo "<a href=\"page.php?m=$bm&y=$by\">".date('M',mktime(0,0,0,$bm,0,2007))."</a></p>";
echo "<br/>$cm";
But for some reasone the Aug is appearing as Jul. The link reference to page.php comes up correctly i.e page.php?m=08
So basically what I'm saying is that the date of the month is appearing 1 month behind even though it is explictly set not to. Does anyone know why this would be happening? I am using php 5 (not too sure on exact version at moment) but this is just driving me crazy!
Any help would be appreciated.