You can actually create a tiddler and have the Created field be the wished
date...
I will try your code, thanks!

Ray

Op zo 18 apr. 2021 om 22:24 schreef PMario <pmari...@gmail.com>:

> On Saturday, April 17, 2021 at 1:01:06 AM UTC+2 rayv...@gmail.com wrote:
> ...
>
>> I use this filter below to have overview of a day, i put the date in
>> manually, must be possible to do that better but ok it works for me:
>>
>
> If you put this into a tiddler, it will give you a list of tiddlers, that
> have been created the same Year / Month / Day / hour ... as this tiddler.
>
> \define sameYear() YYYY
> \define sameMonth() YYYY0MM
> \define sameDay() YYYY0MM0DD
> \define sameHour() YYYY0MM0DD0hh
>
> <$set name=thatDate filter="[<currentTiddler>get[created]format:date<
> sameDay>addprefix[^]]">
> <<list-links filter:"[!is[system]regexp:created<thatDate>sort[created]]"
> emptyMessage:"n/a">>
> </$set>
>
> <$set name=thatDate filter="[<currentTiddler>get[created]format:date<
> sameYear>addprefix[^]]">
> <<list-links filter:"[!is[system]regexp:created<thatDate>sort[created]]"
> emptyMessage:"n/a">>
> </$set>
>
> The problem with such a filter function in a Journal tiddler is, that:
> "What if I did create the journal tiddler 1 day late". ... So I want to
> date it back, which isn't possible with the created field. ...
>
> So your approach with manually setting the value is probably the right
> one, but it may be simplified. eg:
>
> \define thatDate() ^20210418
>
> <<list-links filter:"[!is[system]regexp:created<thatDate>sort[created]]"
> emptyMessage:"n/a">>
>
> The ^ char is needed, because it means "at the start of the line" ... eg
> if you use 2021 without the ^ it could find a tiddler with the time 20:21
>
> have fun!
> mario
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/KyNX1E6Hjn4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/c8c660c1-ed72-4247-9486-3150de2a8f4fn%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/c8c660c1-ed72-4247-9486-3150de2a8f4fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAAF_p9Dq-PhyvhCfJXGm5uw6X2ZLiZAi_dMjBMGPi1KZwhmKBg%40mail.gmail.com.

Reply via email to