Answer the question
In order to leave comments, you need to log in
Bitrix: Is there an analogue of ACTIVE_DATE for infoblock elements in d7?
Hello. In the old kernel, active by date items could be retrieved using ACTIVE_DATE in the filter:
$elements = CIBlockElement::GetList(
array(),
array("ACTIVE_DATE" => "Y")
)->fetch();
$elements = \Bitrix\Iblock\ElementTable::getList(array(
"filter" => array("ACTIVE_DATE" => "Y")
))->fetch();
Answer the question
In order to leave comments, you need to log in
How to filter by the date property on the new D7 1C-Bitrix core?
$elements = \Bitrix\Iblock\ElementTable::getList(array(
"filter" => array(">=ACTIVE_FROM" => "ТЕКУЩЕЕ_ВРЕМЯ", "<=ACTIVE_TO" => "ТЕКУЩЕЕ_ВРЕМЯ")
))->fetch();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question