I know there's a lot around here but for many articles I read and test this simply don't work..
I'm saving date with ACF like d.m.y and reading too.
When I make this type of comparison it works BUT only for the current month. No matter what I do, this is the working thing I've done that works, any advise please?
if(strtotime(date('d.m.y')) > strtotime($cd_date_from)) {
$output .= ' class="event-passed"';
}
This means that I'm hiding only the event on the table row that the date is older than today (showing today). If the date is 15.03.19 or 28.03.19 it shows BUT if it's 15.04.19 (other month) it don't.
Thank you in advance