On Monday, November 27, 2017 at 12:45:51 PM UTC-8, Stefan Spycher wrote:
>
> so, the thing i found is <$list filter=[sameday[20171127]]></$list>
> but what i'm having a hard time figuring out is how i can substitude the
> hardcoded date to the 'created' date of the current tiddler (which is the
> daily journal tiddler, so it's create date is exactly what i could use)
> long story short, how to use the <currentTiddler> created date in the
> correct format (YYYYMMDD) as date for the sameday operator?
>
You can use any valid date **field reference** (i.e., {!!created} or
{!!modified}) as the parameter value. You can also specify an operator
*suffix* to indicate which field to compare with.
Note that, as per the documentation for the sameday filter: "D may include
a time of day, but this is ignored."
Thus, for your use-case:
<$list filter="[sameday:created{!!created}] [sameday:modified{!!created}]">
<li><$link><$text text=<<currentTiddler>>/></$link></li>
</$list>
Note the use of two concatenated filter expressions to select tiddler by
"created" OR "modified" field value matching the current tiddlers "created"
date.
enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/26dfd116-997c-493d-ad86-34fbc1844e99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.