I just had a quick look at your code <$vars todayfilter="[get[task_date]compare:string:eg[<target>]]
Try; vars todayfilter="[all[current]get[task_date]compare:string:eg<target>]" Tones On Monday, 23 August 2021 at 06:24:58 UTC+10 vpl wrote: > Hi, > > I'm trying to run the following code (at the end of the message) which > uses a variable called 'target' (that contains the current date) into a > filter called todayfilter > > When I set the todayfilter > <$vars todayfilter="[get[task_date]compare:string:eg[2021-08-22]]"> > All works fine (I mean the list <$list > filter="[regexp[db___]!sort[task_start_time]filter<todayfilter>]"> > > When I set the todayfilter using the <target> variable (as in the code > below) this does not works. I've tested several syntax options without > success ... > > Any expert to tell me when the syntax is wrong ? > Many thanks , Regards > Vpl > > \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>> > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4ee01645-04ac-4d1c-87ac-ef9930b5468cn%40googlegroups.com.