I’ve got one tiddler, “daysFromEndOfMonth”, which contains:
\whitespace trim
<$let
day=<<now DD>>
month=<<now MM>>
year=<<now YYYY>>
lastDay={{{
[<month>match[1]then[31]]
:else[<month>match[2]then[28]]
:else[<month>match[3]then[31]]
:else[<month>match[4]then[30]]
:else[<month>match[5]then[31]]
:else[<month>match[6]then[30]]
:else[<month>match[7]then[31]]
:else[<month>match[8]then[31]]
:else[<month>match[9]then[30]]
:else[<month>match[10]then[31]]
:else[<month>match[11]then[30]]
:else[<month>match[12]then[31]]
}}}
>
<$text text={{{ [<lastDay>subtract<day>] }}} />
</$let>
And (as of the day of posting this) produces “14”.
I’ve got another tiddler “Date Test” which contains:
<$vars day={{daysFromEndOfMonth}} >
<$list filter="[<day>match[14]]">
Test
</$list>
Which I would expect would contain “Test” but is instead blank. Any ideas why this isn’t working or how to fix it?
Thanks in advance!