Someone previously posted a few additional date functions, including one that returns the current month:
silverbullet.registerFunction({name: "monthNumber"}, () => {
return Temporal.Now.plainDateISO().month;
})
If you go ahead and add a month
attribute to your tasks (e.g., [ ] Something to do [month:6]
, you could render tasks where that month
attribute matches the current month:
{{{task where month = monthNumber render [[Library/Core/Query/Task]]}}}
I prefer to see tasks in the next 30 days though, so I’m comparing addDays(today, 30)
with the deadline
attribute in the following template:
{{{task where !done and deadline <= addDays(today, 30) order by deadline render [[Library/Core/Query/Task]]}}}