How do I use specific dates in a NewsView's FilterExpres

Posted by Community Admin on 03-Aug-2018 18:13

How do I use specific dates in a NewsView's FilterExpression?

All Replies

Posted by Community Admin on 27-Apr-2011 00:00

see this post for background: www.sitefinity.com/.../how-to-create-queryitems.aspx

I now need to be able to specify a date range in this FilterExpression.  I've tried using strings, DateTimes converted to strings, and various other things in place of "DateTime.UtcNow" in the example and they all break the expression when it's being parsed.   How do I use specific dates in this FilterExpression?


Also, are there any resources on how to write FilterExpressions in SF 4.x?  I haven't been able to find any.

Thank you

Posted by Community Admin on 29-Apr-2011 00:00

Hi Hahn,

You can use the following syntax ( example with events)

Visible = true AND Status = Live AND EventStart > (01/01/2011) AND EventEnd < (04/01/2011)

Kind regards,
Ivan Dimitrov
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed