I have a base query for notes that are created or edited today or yesterday. I sync between different file systems (Android, Linux, Windows, …) and so I trust the creation (erstellt) and modified (geändert) in YAML more than the date of the file systems.
This is my typical YAML front matter for notes (we have DSP in Germany; “Sommerzeit” and “Normalzeit”):
---
tags: [Notiz]
erstellt: 2025-08-19T10:42:31+02:00
geändert: 2025-08-19T20:08:47+02:00
---
This is my base, which works, but by using ctime and mtime:
```base
formulas:
Untitled: ""
properties:
file.name:
displayName: Dateiname
file.folder:
displayName: Ordner
file.size:
displayName: Größe
file.tags:
displayName: Tags
views:
- type: table
name: Heute oder gestern geändert oder erstellt
filters:
or:
- file.ctime == today() # heute
- file.ctime == today() - ("1 day") # gestern
- file.mtime == today() # heute
- file.mtime == today() - ("1 day") # gestern
order:
- file.name
- file.ext
- file.tags
- file.size
- erstellt
- geändert
- file.ctime
- file.mtime
sort:
- property: geändert
direction: DESC
- property: erstellt
direction: DESC
columnSize:
file.tags: 106
file.size: 81
note.erstellt: 200
note.geändert: 280
file.ctime: 149
file.mtime: 146
- type: table
name: View
filters:
or:
- erstellt == today()
- geändert == today()
order:
- file.name
- geändert
- erstellt
- formula.Untitled
columnSize:
note.geändert: 194
note.erstellt: 194
```
How can I use the YAML fields “erstellt” und “geändert” instead of ctime and mtime for this query?
Is a ctime/mtime fallback possible for files without markdown YAML (images, pdf, …)?
The first lime frame shows, why I cannot trust the file systems dates. The second shows, why I need a fallback.
