View daily note doesn´t work

Hello,

why does the code below not work?

I have my daily notes in a folder and would like to display the current entry of the day on my dashboard.
my calendar entries for the days are in the format:
day-month-year

list
FROM "4 Kalender" 
where file.day=date(today)
SORT file.name desc

the entries are empty :frowning:

Is there a file that matches your criteria in the first place?

yes :slight_smile:
the file is called for example
04-08-2023

I notice you use the German notation of the date in the file name. Please try, whether ISO-Notation solves your issue first: Rename the file into 2023-08-04.

P.S.: Sorry, I’m an idiot. You said that in the first posting :smiley:

Try this one, if changing the notation helped:

list
where file.name=dateformat(date(today),"dd-MM-yyyy")
SORT file.name desc
1 Like

this is perfect.
it works well, thanks for the help :slight_smile:

would there be the possibility on any way that you do not get the date displayed, but the whole content of that day?

I think not possible or?

it would be nice if i could then create a callout and when i unfold it, then see the whole current day.

it is an idea that would be useful :slight_smile:

In theory you could do that with the function embed (Functions - Dataview), or by string concatenation (“![[” + file.name + “]]”.

I haven’t managed to embed a whole file this way, however. It works pretty well if the file is an image, though.

1 Like

Just something that hit me :slight_smile: If you Ctrl-hover over the link, you’ll see it anyway. If you’re using the plugin HoverEditor, you can even edit the file in a floating window directly. Editing won’t work in an embedded file.

1 Like

thanks for the hint. i know that, is also a possibility, sometimes there are many possibilities :slight_smile:

i’ll try :slight_smile:

best regards

To get to today’s daily note from anywhere, I use the obsidian-advanced-uri plugin …

[DAILY] (obsidian://advanced-uri?vault=yourVaultNAME&daily=true)

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