2

I use Windows 10. If I use date stamps ( YYMMDD ) within my file names how can I go back and search for files with names that contain YYMMDD values within a certain range?
If I used the date stamps within the contents of a file and the Windows inbuilt Search capability is able to index the file contents, can I still search for files that contain YYMMDD values within a certain range.

2
  • Please edit your question so as to include a representative sample of the filenames.
    – MJH
    Commented Nov 2, 2016 at 9:04
  • Did you a look at this answer
    – Prasanna
    Commented Nov 3, 2016 at 12:28

1 Answer 1

0

No. You can't.

The only dates Windows search can interpret as actual dates are datemodified, datecreated, ... (source)

Windows search also doesn't support functions, nor regex. So you can't grab the YYMMDD part and convert it into a date.

If you were to add the YYMMDD into the file contents, it would still only be searched as a string, not as a date.

So, the answer to your specific question, is, unfortunately, no.

Possible workarounds though:

  • Write a PowerShell script to list all files containing the YYMMDD pattern, convert it to a date, and apply a filter.
  • Write a PowerShell script to update the Creation or Modified date of all files into their YYMMDD timestampt. Once you update those dates, you can use creation/modified date in windows search.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .