Answer the question
In order to leave comments, you need to log in
Bitrix how to display a getlist of records that are more than 1 day old? 1 year?
There is a table:
and a getlist:
$rsTransacts = \transaction::getList([
'select' => [
'USER_ID', 'DATE_CREATE', 'VALUE', 'DEBIT'
],
'filter' => [
'DATE_CREATE' =>
]
]);
Answer the question
In order to leave comments, you need to log in
You calculate the date from which you want to count, for example, through DateTime , using the relative format .
And substitute in the condition:
'filter' => [
'>DATE_CREATE' => "2021.11.26 00:00:00",
]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question