-
Notifications
You must be signed in to change notification settings - Fork 229
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
Is it possible to get a date from a file's name? #297
Comments
I might be having trouble understanding your request here. Yes it is possible to get the date from the file name (it's one of the default search locations). Could you please use the issue template to fully report what you are wanting to achieve? |
@lazyguru It's more likely me who's not understanding! Happy to use the issue template: Expected BehaviorSuppose there's a note with title Current BehaviorUsing
Using a relative date as Possible SolutionIf there was a way to get a date from the note title, as in Steps to Reproduce (for bugs)
ContextI have a periodic notes system, and I use trackers in those periodic notes. However, sometimes I make those periodic notes after the fact, so the It also means that a tracker showing the past week works well in the moment, but then if I look back at it a month later, it shows the most recent week, rather than the week leading up to the day that note was meant for. The way I handle this is by making the note title reflect the day or period (week, month, quarter, year) it's for. Can I get a start/end date from the note title within the Tracker plugin? For example, if I have a daily note called 2024-01-14, can I set the startDate based on that, or use a date relative to that note title date? |
I have a periodic notes system, and I use trackers in those periodic notes. (It's so awesome btw — huge thanks to this plugin's creator!)
However, sometimes I make those periodic notes after the fact, so the
cDate
is, say, Thursday, but it's actually a daily note for Tuesday. That means that relative dates in the trackers don't work right. it also means that a tracker showing the past week works well in the moment, but then if I look back at it a month later, it shows the most recent week, rather than the week leading up to the day that note was meant for.The way I handle this is by making the note title reflect the day or period (week, month, quarter, year) it's for. Can I get a start/end date from the note title within the Tracker plugin? For example, if I have a daily note called 2024-01-14, can I set the
startDate
based on that, or use a date relative to that note title date?The text was updated successfully, but these errors were encountered: