Every note stores the local system time of creation in the attribute Created. It also stores the last modification of title or text in Modified. Both are Date-type attributes.
An agent query of:
$Created > date("today- week")
should find all notes created within the last week. See some considerations when doing date arithmetic.
Don’t want to hardcode the test duration in the query. There’s a way for that too.
Make a new agent and add the built-inDate-type sandbox attribute MyDate as a Displayed Attribute for the agent. Set MYDate to the date after which you want to check. Now the query is:
$Created > $MyDate(agent)
The ‘agent’ part is a designator, which tells the query to test each note’s date value for Created against the agent’s date in its MyDate attribute.