Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Year as folder for date format? #285

Open
JosephBrooksbank opened this issue Jan 3, 2024 · 1 comment
Open

Year as folder for date format? #285

JosephBrooksbank opened this issue Jan 3, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@JosephBrooksbank
Copy link

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?

@lazyguru
Copy link
Collaborator

lazyguru commented Jan 5, 2024

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 lazyguru added enhancement New feature or request help wanted Extra attention is needed labels Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants