Change the first four lines from this:
<$vars now_date=<<now YYYY-0MM-0DD>>>
<$vars target={{{ [<now_date>] }}}>
<<target>>
<$vars todayfilter="[get[task_date]compare:string:eg[<target>]]">
to this:
<$vars target=<<now YYYY-0MM-0DD>>>
<<target>>
<$vars todayfilter="[get[task_date]compare:string:eq<target>]">
Notes:
- The results of the
<<now>>
macro are directly stored in thetarget
variable. There is no need for the extra step of wrapping it inside a “filtered transclusion”. - The compare operator’s “mode” should be “eq” (as in “equal”), not “eg”
- The description of the syntax for compare (see https://tiddlywiki.com/#compare%20Operator) may be confusing, in that it uses “
[<operand>]
” to show where a literal value should be inserted; e.g. “[3]
”. However, because in this case the operand is actually a variable reference, you omit the square brackets around it, and just use<target>
- Also, instead of using the
compare:string:eq
filter operator for checking a text value, you can use the much simplermatch
filter operator, like this:
<$vars todayfilter="[get[task_date]match<target>]">
P.S. In Discourse, when posting code containing angle brackets, you should select the code text and use the </>
button (or press ctrl-E) in the editor to make the code “preformatted” so that the angle brackets and enclosed syntax aren’t treated as embedded HTML, but instead appear exactly as entered.
Let me know how it goes…
enjoy,
-e