Meta-bind-plugin traget today note automatically

hello,
i need help about obsidian-meta-bind-plugin
i’ve this button on my dashboard

```meta-bind
INPUT[toggle():Journal/Daily/Jun 04 , 2023#workout]

it works pretty good but i need the targerd note is today note automatically.

i have tried :

```meta-bind
const todayNote= "Journal/Daily/" + new Date().toLocaleDateString('en-US', { month: 'short', day: '2-digit', year: 'numeric' });
INPUT[toggle():${todayNote}#workout]

and

```meta-bind
const todayNote= "Journal/Daily/" + new Date().toLocaleDateString('en-US', { month: 'short', day: '2-digit', year: 'numeric' });
INPUT[toggle()todayNote#workout]

and

```dataviewjs
const todayNote= "Journal/Daily/" + new Date().toLocaleDateString('en-US', { month: 'short', day: '2-digit', year: 'numeric' });
```meta-bind
INPUT[toggle():${todayNote}#workout]

and

```dataviewjs
const todayNote= "Journal/Daily/" + new Date().toLocaleDateString('en-US', { month: 'short', day: '2-digit', year: 'numeric' });
```meta-bind
INPUT[toggle():todayNote#workout]
But it didn't work

Have you tried using templater on note creation?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.