Find files modified the last X days

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
blank15927
Posts: 4
Joined: Mon Jul 16, 2018 9:05 am

Find files modified the last X days

Post by blank15927 »

Hello,

Version 1.4.1.1003 (x64)

I'm trying to find files modified the last X days, for example modified the last 2 days.
For now, I have something like this :

Code: Select all

dm:04/02/2021..today
(please note that the date format is in french : day/month/year)
So far it's working but as you can see, the first date is hardcoded, and I have to change it when I want to run a search days later.
So I guess I'm looking for some kind of relative date, something like :

Code: Select all

today-2
, or today-3.
(I tried them but no luck :)

Any idea how to do this ?

Thanks !
ovg
Posts: 294
Joined: Thu Oct 27, 2016 7:19 pm

Re: Find files modified the last X days

Post by ovg »

Try

Code: Select all

dm:lastXdays
where X = quantity of the days
NotNull
Posts: 5232
Joined: Wed May 24, 2017 9:22 pm

Re: Find files modified the last X days

Post by NotNull »

ovg wrote: Sat Feb 06, 2021 5:30 pm dm:lastXdays
This. One thing to be aware of, is that searching for dm:last2days will report today and yesterday.
So in yourr case, you have to specify dm:last3days

More options : https://www.voidtools.com/support/every ... _constants
blank15927
Posts: 4
Joined: Mon Jul 16, 2018 9:05 am

Re: Find files modified the last X days

Post by blank15927 »

Thanks to both of you !
Much more convenient now.

@NotNull :
I saw all these syntax, but I did not understand how it works, how to combine date constants.
(I feel stupid now, I was typing spaces between them, or colons... )

Thanks again.
NotNull
Posts: 5232
Joined: Wed May 24, 2017 9:22 pm

Re: Find files modified the last X days

Post by NotNull »

blank15927 wrote: Sun Feb 07, 2021 9:13 am I saw all these syntax, but I did not understand how it works, how to combine date constants.
(I feel stupid now, I was typing spaces between them, or colons... )
You are not the first one; there are a couple of threads on this forum where people having the same struggles .. (so no need to feel stupid :))

At the end of the Search Help page are a couple of date examples, but an example like dm:last2days is missing.
It would be helpful if such an example was added (in my opinion).
Post Reply