< [[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] | [[<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]] > ## tagged notes ```dataviewjs // === CONFIG === const today = moment().format("YYYY-MM-DD"); // e.g. "2025-10-08" const headingLevel = 5; // ##### headings const folderFilter = "projects"; // e.g. "projects" or "" for all folders // === HELPER === async function readFileContent(path) { const file = app.vault.getAbstractFileByPath(path); if (!file || !file.extension) return null; // skip folders or invalid return await app.vault.read(file); } // === MAIN === const pages = dv.pages().where(p => p.file.path.startsWith(folderFilter + "/")); for (let page of pages) { const content = await readFileContent(page.file.path); if (!content) continue; const regex = new RegExp(`${today}[\\s\\S]*`, "m"); const match = content.match(regex); if(match){ console.log("Match for", page.file.name, match); } if (match && match[0]) { const text = match[1] ? match[1].trim() : match[0].trim(); dv.header(5, page.file.name); dv.paragraph(text); } } ``` # created today ```dataview table without id file.link as "note", up as "up", topic as "topic", dateformat(file.ctime, "HH:mm") as "time" from "" where dateformat(file.ctime, "yyyy-MM-dd") = this.file.name and file.name != this.file.name sort file.ctime desc ``` # last modified today ```dataview table without id file.link as "note", up as "up", topic as "topic", dateformat(file.mtime, "HH:mm") as "time" from "" where dateformat(file.mtime, "yyyy-MM-dd") = this.file.name and file.name != this.file.name and dateformat(file.ctime, "yyyy-MM-dd") != this.file.name sort file.mtime desc ``` **WEEK** - [[per/week/<% tp.date.now("GGGG-[W]WW", 0, tp.file.title, "YYYY-MM-DD") %>]] **MONTH** - [[per/month/<% tp.date.now("YYYY-MM", 0, tp.file.title, "YYYY-MM-DD") %>]] **YEAR** - [[per/year/<% tp.date.now("YYYY", 0, tp.file.title, "YYYY-MM-DD") %>]]