You can create a calculated field to get today's date using TODAY().
To get the last date and not today use LAST() with date field to get the previous or last date order.
Now create a parameter and provide the field as its parameter.
So the value can be provided dynamically.
Hope it helps.