I have many tiddlers (events/tasks/etc.) with the field due
set to some date in the future. To show the agenda, I use the code:
<$vars today=<<now format:"YYYY0MM0DD">>>
<ul>
<$list filter="[has[due]] :filter[get[due]compare:date:gteq<today>] +[sort[due]first[10]]">
<li><$view field="due" format="date" template="ddd DD mmm"/> - <$link to=<<currentTiddler>>><$view field="caption">{{!!title}}</$view></$link> - (<$view field="due" format="relativedate"/>)</li>
</$list>
</ul>
<$vars>
This will produce something like
- Wed 8 Sep - Do some work - (4 days from now)
- Thu 9 Sep - Go some place - (5 days from now)
so I can quickly see what is coming up and how long until then.
I also have the sidebar calendar which installed from Timer Tool. The calendar reads events from a file that looks like
20200308;Daylight Saving Time starts
20201101;Daylight Saving Time ends
20201103;Election Day (US)
20201211;Hanukkah (first day)
I want to be able to list what’s coming up next (similar to what I did above). I can use the first part 20200308
for the due information. But the problem is how do I process each line?
I prefer not to turn each line into a new tiddler as some events/tasks are not important enough to worth making a new tiddler for.