Z
Z
zekin3752020-10-19 20:40:45
1C-Bitrix
zekin375, 2020-10-19 20:40:45

How to exclude a product with a date greater than today?

Please help I don't understand how to exclude from global $arrFilter; a product whose date property is greater than today.

I understand how to exclude by id

$arrFilter = Array("!ID" => 147);

But I can't figure out how to build an expression

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-10-20
@Deemc

Hello, try this:

$curdate = date('d.m.Y'); 
$arrFilter= Array(">=СВОЙСТВО" => $curdate)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question