Viewing 1 replies (of 1 total)
  • Thread Starter kautukbhatnagar

    (@kautukbhatnagar)

    This is how i am writing it

    $first_published_on = get_field(‘first_published_on’);
    $fp_date=strtotime($first_published_on);
    if($todays_dt == $fp_date)
    {
    echo ‘<li class=”new-post”>‘;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘How to compare todays date with acf date field variable’ is closed to new replies.