R
R
run1822015-08-12 18:36:07
PHP
run182, 2015-08-12 18:36:07

How to set up a filter by date in Bitrix?

I tried different options, it does not help - it displays the wrong range and that's it.

$arFilter = Array("IBLOCK_ID"=>array(2, 3), "<ACTIVE_FROM"=> "15.08.2015");
  $res = CIBlockElement::GetList(Array("PROPERTY_START_DATE" => "DESC"), $arFilter, false, false, $arSelect);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
run182, 2015-08-12
@run182

I don’t know how for standard date fields, but for date / time properties - this format works

trim(CDatabase::CharToDateFunction(ConvertTimeStamp(strtotime("30.08.2015"),'FULL')),"\'"))

I
Igor, 2015-08-12
@phper1785

The date must be in the same format as the database.
dev.1c-bitrix.ru/support/forum/forum6/topic25811
https://dev.1c-bitrix.ru/api_help/main/general/dat...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question