obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

file.day does not work

Open pomu0326 opened this issue 1 year ago • 3 comments

What happened?

The file.day function does not work as expected under certain conditions.

Situation:

Consider the following files:

  • History/2024-01-01 Test1
  • History/2024-01-02 Test2
  • History/Backup/2024-01-03 Test3

I created the following query to retrieve the dates from the files under the History folder:

LIST file.day
FROM "History"

However, the file.day could not retrieve the date for the file located in the Backup folder.

Expected

  • 2024-01-01 Test1: 2024-01-01
  • 2024-01-02 Test2: 2024-01-02
  • 2024-01-03 Test3: 2024-01-03

Actual

  • 2024-01-01 Test1: 2024-01-01
  • 2024-01-02 Test2: 2024-01-02
  • 2024-01-03 Test3: -

DQL

LIST file.day
FROM "History"

JS

No response

Dataview Version

0.5.67

Obsidian Version

1.6.7

OS

Windows

pomu0326 avatar Aug 22 '24 00:08 pomu0326

Don't you mean file.cday / file.mday? i don't see any file.day in the dataview docs!

capitanhazel avatar Aug 23 '24 18:08 capitanhazel

Don't you mean file.cday / file.mday? i don't see any file.day in the dataview docs!

https://blacksmithgu.github.io/obsidian-dataview/annotation/metadata-pages/

haoduoyu avatar Aug 24 '24 23:08 haoduoyu

@capitanhazel I used file.day.

@haoduoyu Thank you for the additional information!

pomu0326 avatar Aug 26 '24 05:08 pomu0326

The reason is unclear, but the symptoms are no longer recurring. Thank you.

pomu0326 avatar Sep 05 '24 01:09 pomu0326