Syntax for date range

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
burgundy
Posts: 264
Joined: Fri Oct 16, 2009 9:50 am

Syntax for date range

Post by burgundy »

I want to find all jpeg files with a creation date between 1st January 2017 and 30th April 2017. However neither of these works:

dc:>01jan2017 dc:<30april2017 *.jpg

dc:>01jan2017 AND dc:<30april2017 *.jpg


Can someone kindly advise what the correct syntax should be.
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

Re: Syntax for date range

Post by vanisk »

Copied from VoidTools help page

Find files and folders created from the 1st August 2014 to 31st August 2014:

dc:1/8/2014-31/8/2014

or:

dc:8/1/2014-8/31/2014

Depending on your locale settings.
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Syntax for date range

Post by void »

Using month names will work in the next version of Everything.

For now, you will need to specify the month as a number, eg:
dc:1/1/2017..30/4/2017 *.jpg

or, alternatively, iso8601 format:
dc:20170101..20170430 *.jpg
tuska
Posts: 908
Joined: Thu Jul 13, 2017 9:14 am

Re: Syntax for date range

Post by tuska »

Does it have any effect if only .jpg is used instead of *.jpg?
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

Re: Syntax for date range

Post by vanisk »

tuska wrote: Mon Nov 26, 2018 8:07 am Does it have any effect if only .jpg is used instead of *.jpg?
Yes, .jpg searches for both files with jpg as extension and also names of files with .jpg in its name. (For e.g. It also lists something.jpg.part)
But *.jpg only search for files with jpg as extension.
dot jpg AND asterisk dot jpg.jpg
dot jpg AND asterisk dot jpg.jpg (88.79 KiB) Viewed 15268 times
tuska
Posts: 908
Joined: Thu Jul 13, 2017 9:14 am

Re: Syntax for date range

Post by tuska »

vanisk wrote: Mon Nov 26, 2018 9:44 am
tuska wrote: Mon Nov 26, 2018 8:07 am Does it have any effect if only .jpg is used instead of *.jpg?
Yes, .jpg searches for both files with jpg as extension and also names of files with .jpg in its name. (For e.g. It also lists something.jpg.part)
But *.jpg only search for files with jpg as extension.

dot jpg AND asterisk dot jpg.jpg
2vanisk
Ahh, thanks - also for the visual representation!
Just Visiting
Posts: 26
Joined: Sat Jul 16, 2011 10:38 pm

Re: Syntax for date and time range?

Post by Just Visiting »

Is there a syntax for date and time as well?
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Syntax for date range

Post by void »

ISO 8601:

YYYYMMDDThhmm
-or-
YYYY-MM-DDThh:mm

For example:

dm:20220613T1730
-or-
dm:2022-06-13T17:30
Post Reply