You can try this expression to get 'last week' (today minus seven days)
You can see also this link for better understanding this solution.
You can try to get date via
SQL query and put the result value to the new
It would be something like this for Oracle:
SELECT account_date, sysdate-7 as last_week, ... FROM table ...
It would be something like this for MS SQL:
Another way to pass date from code via
SELECT account_date, (GETDATE() - 1) as last_week , ... FROM table ...
Or you can try to import Joda library for example. Here is the sample of scriplet using.