Page 1 of 1

Syntax for date range

Posted: Sun Nov 25, 2018 11:22 pm
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.

Re: Syntax for date range

Posted: Sun Nov 25, 2018 11:33 pm
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.

Re: Syntax for date range

Posted: Mon Nov 26, 2018 8:01 am
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

Re: Syntax for date range

Posted: Mon Nov 26, 2018 8:07 am
by tuska
Does it have any effect if only .jpg is used instead of *.jpg?

Re: Syntax for date range

Posted: Mon Nov 26, 2018 9:44 am
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 15270 times

Re: Syntax for date range

Posted: Mon Nov 26, 2018 10:25 am
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!

Re: Syntax for date and time range?

Posted: Mon Jun 13, 2022 7:57 am
by Just Visiting
Is there a syntax for date and time as well?

Re: Syntax for date range

Posted: Mon Jun 13, 2022 8:00 am
by void
ISO 8601:

YYYYMMDDThhmm
-or-
YYYY-MM-DDThh:mm

For example:

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