Вывести элементы у которых закончилась дата активности

$today_date = date(‘d.m.Y H:i:s’);
if(CModule::IncludeModule(«iblock»))
{
$arSelect = Array(«ID», «NAME», «DATE_ACTIVE_TO»);
$arFilter = Array(«IBLOCK_ID»=> НОМЕР_ИНФОБЛОКА, «<DATE_ACTIVE_TO» => $today_date);
$rsResCat = CIBlockElement::GetList(Array(), $arFilter, false, Array(«nPageSize»=>50), $arSelect);
$arItems = array();
while($arItemCat = $rsResCat->GetNext())
{
$arItems[] = $arItemCat;
}

Вывести элементы у которых закончилась дата активности

2 мыслей о “Вывести элементы у которых закончилась дата активности

  • 22.03.2024 в 03:09
    Permalink

    Wow, amazing blog format! How long have you been blogging
    for? you make running a blog glance easy. The total glance
    of your site is wonderful, as well as the content!
    You can see similar here najlepszy sklep

  • 28.03.2024 в 19:06
    Permalink

    Hey! Do you know if they make any plugins to assist with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not seeing
    very good success. If you know of any please share. Appreciate
    it! You can read similar article here: Sklep internetowy

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *