search by date created=date modified

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
anmac1789
Posts: 59
Joined: Mon Aug 24, 2020 1:16 pm

search by date created=date modified

Post by anmac1789 » Thu Oct 29, 2020 10:31 pm

Hello, is there any function to search for files with the date and time created and date modified and time are equal to each other? thanks

void
David Carpenter (Developer)
Posts: 9360
Joined: Fri Oct 16, 2009 11:31 pm

Re: search by date created=date modified

Post by void » Thu Oct 29, 2020 10:39 pm

dm:dc:

Note: Date created information is not indexed by default. This search can take several minutes.

To index date created information (which will make this search instant):
  • In Everything, from the Tools menu, click Options.
  • Click the Indexes tab on the left.
  • Check Index date created.
  • Click OK.

Date comparison syntax:
dm:<op>dc:

For example, find files with the date modified earlier than the date created:
dm:<dc:

dm:dc: is the same as dm:=dc: is the same as dm:==dc:

anmac1789
Posts: 59
Joined: Mon Aug 24, 2020 1:16 pm

Re: search by date created=date modified

Post by anmac1789 » Thu Oct 29, 2020 10:50 pm

will this also work for the time part with each date field as well ?

void
David Carpenter (Developer)
Posts: 9360
Joined: Fri Oct 16, 2009 11:31 pm

Re: search by date created=date modified

Post by void » Thu Oct 29, 2020 11:16 pm

Yes.

anmac1789
Posts: 59
Joined: Mon Aug 24, 2020 1:16 pm

Re: search by date created=date modified

Post by anmac1789 » Thu Jan 13, 2022 7:34 am

It seems like since everything 1.5a release, I cannot use dc:=dm: instead, I have to use date-created:=date-modified: instead. I would like to extend this functionality to search for a specific date while also making sure the date created and date modified are equal to each other. How can I do that ? Thanks...

void
David Carpenter (Developer)
Posts: 9360
Joined: Fri Oct 16, 2009 11:31 pm

Re: search by date created=date modified

Post by void » Thu Jan 13, 2022 11:41 am

Have you created a filter or bookmark macro with the name dc?

For the best performance, please make sure you enable date create indexing from Tools -> Options -> Indexes -> Index date created.


Include the date in date-created: or date-modified: search, for example:

date-created:=date-modified: date-created:2022-01-13

anmac1789
Posts: 59
Joined: Mon Aug 24, 2020 1:16 pm

Re: search by date created=date modified

Post by anmac1789 » Fri Jan 14, 2022 6:36 am

Can this also be done with date-taken, date-created and date-modified ?

void
David Carpenter (Developer)
Posts: 9360
Joined: Fri Oct 16, 2009 11:31 pm

Re: search by date created=date modified

Post by void » Fri Jan 14, 2022 6:38 am

Currently, no.
Next alpha update: yes.

I have reworked the eval: search function so the following will be possible in the next alpha update:

eval:#dm:==#date-taken:


I'll make another post here once this is ready for testing.


I have put dm:==date-taken: on my TODO list. -This might be tricky to do as there's a lot of code paths already for dm:==dc:
Thanks for the suggestion.

void
David Carpenter (Developer)
Posts: 9360
Joined: Fri Oct 16, 2009 11:31 pm

Re: search by date created=date modified

Post by void » Fri Jan 21, 2022 6:18 am

Everything 1.5.0.1297a adds an eval: search function.

Please try the following search:
*.jpg eval:#dm:==#date-taken:


I am working on adding the simpler syntax: dm:==date-taken:

anmac1789
Posts: 59
Joined: Mon Aug 24, 2020 1:16 pm

Re: search by date created=date modified

Post by anmac1789 » Fri Jan 21, 2022 8:25 am

Thank you so much! as time goes on and if there's anything that can be improved I will get back to you

Post Reply