This is a very simple question, but for some reason having challenges with it. I have set up ACF field group.
I wanted to compare a "date field" to the current "today's date" and "yesterdays" date.
I basically want a variable
$color to be 2 different colors based on if the "acf date field" is equal to TODAY or another color if it is equal to yesterday.
Here are the 2 variables I have stubbed out. Can anyone point me in the right direction here ? Thanks!
$curdate = date('F n, Y'); $groom_date = get_sub_field('date_last_groomed'); $color = red; // when $groom_date = TODAY $color = blue; // when $groom_date = YESTERDAY