These files contain lines with Tags (e.g. #info)
These files are named YYYY-MM-DD at the end, but their CTIME and MTIME do not equal the actual date given by given YYYY-MM-DD suffix within filename.
What I try to do is create some sort of Dashboard file which contains either a query oder dataview which lists me all lines tagged with #info but only from last file, whereby “last file” means: The “last file” is based on file name as shown above
Part of your request is to get to the date portion of your file names. If you use Dataview for your queries, which I’m assuming, you should be able to just use file.day as long as that date is in that format.
So a simple query to just get the last file tagged with #info would then become:
```dataview
LIST FROM #info
SORT file.day
LIMIT 1
```
Upon closer reading I do see you want all the lines tagged with #info, and I’m assuming these lines are not list items? If so, you’ll need to use dataviewjs script to get to that content.
If they are list items, you could try something like:
```LIST item.text FROM #info
SORT file.day
LIMIT 1
FLATTEN file.lists as item
WHERE contains(item.tags, "#info")
```