dchaffin-dreamcc
-
6/29/2012 9:02:26 AM
Content Filter > Where Condition > Macro ...
I have the following in a where condition of a Datalist with custom query and it works great (with one exception) ...
DATEPART(yy, SortDate) = {%year|(default)2012%} AND DATEPART(mm, SortDate) = {%month|(default)6%}
Obviously, I don't want to have to change this condition every month, but would like to use something like DateTime.Today.Year.ToString() and DateTime.Today.Month.ToString() to replace the '2012' and '6' in the above. However, I've been unable to discover the syntax that would make this work.
Can anyone help with this?
Thanks.
|