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

Year as folder for date format?

Open JosephBrooksbank opened this issue 1 year ago • 1 comments

My Daily Note format is "YYYY/MM-DD", which is supported by the daily note and templater plugins.

If I set dateFormat in tracker to YYYY/MM-DD, I get an error about invalid X values. I can get the chart to show up if I use dateFormat: MM-DD, but then there is no year data- so entries from last week (december 2023) are at the far end of the graph, while entries from today (january 2024) are at the very beginning.

Is there any way I can use the year folders in the date format?

JosephBrooksbank avatar Jan 03 '24 04:01 JosephBrooksbank

I believe you can use a date property in the metadata and it will read from that instead of the filename. I'll have to look through the code to double check though (if not, it would be a good feature to support).

lazyguru avatar Jan 05 '24 07:01 lazyguru