How do I use specific dates in a NewsView's FilterExpression?
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
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