Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kentico 9,中继器健康检查的条件_Kentico - Fatal编程技术网

Kentico 9,中继器健康检查的条件

Kentico 9,中继器健康检查的条件,kentico,Kentico,我有一个中继器拉事件。我只想展示今天和未来的活动。这是正确的吗 EventStart >= '{% DateTime.Now #%}' 我的其他设置是正确的,但我想我读到了这一点,因为星光日期小于或等于今天。如果要检查今天及以后的事件,需要检查以下内容: EventStart >= '{% CurrentDateTime.Month.ToString() + "/" + CurrentDateTime.Day.ToString() + "/" + CurrentDateTime.Y

我有一个中继器拉事件。我只想展示今天和未来的活动。这是正确的吗

EventStart >= '{% DateTime.Now #%}'

我的其他设置是正确的,但我想我读到了这一点,因为星光日期小于或等于今天。

如果要检查今天及以后的事件,需要检查以下内容:

EventStart >= '{% CurrentDateTime.Month.ToString() + "/" + CurrentDateTime.Day.ToString() + "/" + CurrentDateTime.Year.ToString() #%}'
如果您现在使用
它也将返回当前时间。如果您只使用一个直接日期,那么它将假定从当天午夜开始


如果您想检查页面加载时的事件,请使用文章中的内容