Hi there
Trying to get two months that match to display some different content.
For example:
If start_date month is Oct and finish_date month is Oct, then display something.
See code below
<?php
$start_date = “{start_date format='%M'}”;
$finish_date = “{finish_date format='%M'}”;
if ($start_date == $finish_date) {
$finish_date2 = ' {finish_date format="%d"}’;
}
else {
$finish_date2 = ' {finish_date format="%M %d"}’;
}
?>
In code above some records have the same month, however I can not get them to match.
Can someone please tell me what I am doing wrong, I just don’t understand why Oct == Oct does not much