Good day.
I wonder if there's currently any way to get the newest/oldest item/s for a date-related property, like creation or modification date?
Get newest/oldest for a date related property
Re: Get newest/oldest for a date related property
Please try sorting by date modified / date created.
Check the top-most / bottom-most items.
Check the top-most / bottom-most items.
Re: Get newest/oldest for a date related property
Yes, I'm aware of that, but I was wondering if there's a way to get only the newest/oldest results from a search?
From your response, I guess not?
From your response, I guess not?
Re: Get newest/oldest for a date related property
To find the latest date modified file:
To find the earliest date modified file:
sort:dm count:1To find the earliest date modified file:
file: sort:dm-ascending count:1 no-new-results:Re: Get newest/oldest for a date related property
That was it. Thanks!
Re: Get newest/oldest for a date related property
Everything 1.5.0.1401a fixes an issue with and
The wrong item was shown and was also lost when a change occurred.
To show the earliest date modified file:
Include in your search to avoid showing items without a date modified.
count:1sort:dm-ascendingThe wrong item was shown and was also lost when a change occurred.
To show the earliest date modified file:
Code: Select all
file: sort:dm-ascending dm: count:1
dm:Re: Get newest/oldest for a date related property
Thanks, void!
FWIW, I think it'd be great to have two new formulas (or maybe modifiers?) like HIGHEST and LOWEST, so we can search for all items that have the highest or lowest value for a specific property.
For example:
C:\mypath\ dm:HIGHEST($dm) | LOWEST($dm)
to return all items that match the highest or lowest modified date.
Hope that pseudo query makes sense.
FWIW, I think it'd be great to have two new formulas (or maybe modifiers?) like HIGHEST and LOWEST, so we can search for all items that have the highest or lowest value for a specific property.
For example:
C:\mypath\ dm:HIGHEST($dm) | LOWEST($dm)
to return all items that match the highest or lowest modified date.
Hope that pseudo query makes sense.
Re: Get newest/oldest for a date related property
I will consider formulas to gather the highest, lowest (latest,earliest) date modified from the fast date modified sort array.
Thank you for the suggestion.
I will also consider a simple highest/latest keyword for dm:
lowest is a little tricky to do as unknown date modified is usually the first/lowest item in the fast date modified sort array.
Thank you for the suggestion.
I will also consider a simple highest/latest keyword for dm:
lowest is a little tricky to do as unknown date modified is usually the first/lowest item in the fast date modified sort array.