I'd like to set up a CAML query in a Data View Web Part (DVWP) that works like this:
- If a date is not specified on the Query String, then show me items created in the last 30 days
- If a date is specified on the Query String, then show me items created from that date back 30 days
The first one is pretty easy:
<Where><Geq><FieldRef Name="Created"/><Value Type="DateTime"><Today OffsetDays="-30"/></Value></Geq></Where>
Offset Days seems to only be available with Today, though.