tags:

views:

244

answers:

2

I'm trying to find an effective method of filtering Sharepoint lists based on the age of an item. In other words, if I want to find list items that are 7 days old, I should be able to build a filtered view on the data.

There is a hack to build a "Today" field that works, but doesn't filter properly.

Does anyone have any good ideas?

+1  A: 

Have you tried this: create a Computed column, called 'Expiry', with a formula that amounts to '[Created] + 7 days'. Then use the computed column in your View's filter. Let us know whether this worked or what problems this poses!

ROXORITY SharePoint Web Parts
The idea here is that using [Today] in View filters usually works, compared to having a pseudo column that 'stored' always the current time. So you can instead have your computed column, as described above, and compare that to Today in your View's filtering.
ROXORITY SharePoint Web Parts
A: 

If you want to filter only items that are less than 7 days old then you just use

Filter

  • Created

  • is less than

  • [Today]-7

New items - created in last 7 days

[Today] is fully supported in view filters in 2007 and onwards (just keep the spaces out!) and you only need to muck around with calculated columns in 2003.

Ryan