May 10, 2009

Show Last Month SharePoint List Items

This article has been moved to:
http://excel.shilor.org/2010/07/show-last-month-sharepoint-list-items.html

9 comments:

  1. Thanks,
    that what I was looking for, it is really help me.

    ReplyDelete
  2. Thanks, great article exactly what I have needed.

    ReplyDelete
  3. thanks, great article.
    it is posebe to filter the list by week?

    ReplyDelete
  4. SharePoint doesn't provide the Week() function to enable applying the same procedure described in this article. Also, there is more than one variation to deal with a week. You may need the past 7 days which is just a comparison between [Today] systems' date and Created + 7, for example. If you need to filter from last Monday to the previous Monday, you can apply the Weekday function which is a bit complicated but if you understood the example you would be able to do it. You can find an example of the usage of that function in another article in this blog.

    Zeev Shilor

    ReplyDelete
  5. Hi, thanks for this. It works great at the moment. However, do you know how it handles Januarys?

    AFAICS it depends on whether, by adding one to the month, SharePoint rolls the year forward if the month equals 12/December. Any ideas?

    Thanks.

    ReplyDelete
  6. I am sorry for the late response as I was not notified on your comment and came across it accidentally.

    I had done some testing and apparently SharePoint handles correctly the months around the year start.

    ReplyDelete
  7. I've posted about the same technique on my blog and examples for the current week/year

    ReplyDelete
  8. Thank you very much for this post.It is simple and quick logic instead of other options we had on internet which were runing around the bush.Intelligent brains!!!!!
    This helped me a lot and saved lot of my time

    ReplyDelete
  9. Great post...but i was wondering I'm having a hard time figuring out 'last 3 months' instead of just 'last month'. Is that something that can be done?

    ReplyDelete