$arFilter = Array(
"IBLOCK_ID"=>12,
array(
'>=DATE_CREATE' => date( 'Y-m-d H:i:s', time()-86400 ),
'<=DATE_CREATE' => date( 'Y-m-d H:i:s' )
),
"PROPERTY_PHONE"=>"+7 (333) 333-3333"
);
$res = CIBlockElement::GetList(Array("SORT"=>"ASC"), $arFilter, Array("ID"));
while($ar_fields = $res->GetNext())
{
?><pre><?print_r($ar_fields);?></pre><?
}
$from = date($DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")),
mktime(0,0,0,date("m"),date("d"),date("Y")));
$to = date($DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")),
mktime(0,0,0,date("m"),date("d")+1,date("Y")));
">=CREATED_DATE" => $from,
"<=CREATED_DATE" => $to
$arSelect = Array("ID", "IBLOCK_ID", "NAME", "CREATED_DATE", "PROPERTY_PHONE");
$res = CIBlockElement::GetList(Array("SORT"=>"ASC"), $arFilter, false, Array("nPageSize"=>50), $arSelect);