Search code examples
lotus-noteslotus-dominolotus-formula

How do I select all documents from the last 7 days?


I have a view selection formula

SELECT @If( @Date(@Now) = @Date(@Created); @All; @False)  

and I want it to select all documents from the past 7 days rather than just today's.


Solution

  • SELECT @If( @Date(@Now) < @Date(@Adjust(@Created(), null, null, 7, null, null, null)); @All; @False)