Support

Account

Home Forums General Issues get_posts, filtering by acf date field Reply To: get_posts, filtering by acf date field

  • For a date/time field you need to use the format “Y-m-d H:i:s”

    
    $startDate = date('Y-m-d H:i:s', strtotime('-30 days'));