Answer the question
In order to leave comments, you need to log in
How to display elements from the date range in Bitrix?
Hello.
The infoblock has 2 properties of the Date type (not date with time): dateStart and dateEnd. On the page, you need to display all the elements whose dates are in the range from 10/28/2020 to 10/04/2020.
Can you please tell me how to correctly form a request in the filter for CIBlockElement::GetList ? Elements can be with dateStart 10/15/2020 and dateEnd 10/08/2020 which must be present in the result.
This query doesn't help:
Array
(
[IBLOCK_ID] => 1
[>=PROPERTY_dateStart] => 2020-10-28
[<=PROPERTY_dateEnd] => 2020-11-03
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question