Hi,
I’m trying to run the following code which use a variable called ‘target’ (that contains the current date) into a filter.
I’ve tested the todayfilter this way
\define now_val()
<$vars now_date=<<now YYYY-0MM-0DD>>>
<$vars target={{{ [<now_date>] }}}>
<<target>>
<$vars todayfilter="[get[task_date]compare:string:eg[<target>]]">
<table><tbody>
<tr><th>Date</th><th>Project</th><th>Task</th><th>Start</th><th>Stop</th></tr>
<tr>
<td> </td>
<td align="right">//Number of tiddlers//</td>
<td colspan="4">''<$count filter="[regexp[db___]filter<todayfilter>]"/>''</td>
</tr>
<$list filter="[regexp[db___]!sort[task_start_time]filter<todayfilter>]">
<tr>
<td><$link><$view field="task_date"/></$link></td>
<td><$view field="tags"/></td>
<td><$view field="task_comment"/></td>
<td><$view field="task_start_time"/></td>
<td><$view field="task_end_time"/></td>
</tr>
</$list>
</tbody></table>
\end
<<now_val>>