I have 2 variables and I want to check if both variables belong to a same month and year regardless of the day for example:
$date1 = 09/10/2009;
$date2 = 10/11/2009;
//It will display an error like
echo "Both dates do not belong on the same month";
Any idea on how can this be done? Sample code is much appreciated.
Thanks