Here's a more complete version, that ONLY works inside of the TW prerelease 
(because it needs the range operator). ABSOLUTELY make a backup because if 
something goes wrong, you will have to wait forever for the screen to 
update:

\define datematch() ^$(month)$/$(day)$/$(year)$
<$list filter="[range[2010,2018,1]]" variable="year">
<$list filter="[range[0.801,0.812,.001]removeprefix[0.8]]" variable="month">
<$list filter="[range[0.801,0.831,.001]removeprefix[0.8]]" variable="day">
<$list filter="[all[tiddlers]regexp<datematch>]" >

</$list>
</$list></$list>

That blank space in the middle is deliberate. Without that there is no 
output. This checks every date from 1/1/2010 to 12/31/2018, including a few 
dates that don't appear on calendars.

The dangers in this technique are one more reason why it's better to set up 
a separate date field.

Have fun
-- Mark


On Monday, November 19, 2018 at 1:56:40 PM UTC-8, Mark S. wrote:
>
> The best solution would be to add a date field and then use that for 
> sorting.
>
> A solution that might work is to use several nested lists.
>
> <$list variable="year" filter="2015 2016 2017" >
> <$list variable="month" filter="01 02 03 04 ... 12">
> <$list variable="day" filter="01 02 ... 31">
> COMBINE YEAR MONTH DAY AND MATCH AGAINST ALL TIDDLERS
> </$list></$list></$list>
>
> This would probably be a little slow, if you have 1000s of tiddlers, 
> because it's effectively creating every possible date in a range and then 
> checking to see if a tiddler matches that date.
>
> Good luck
> -- Mark
>

-- 
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/4ac2102f-4f3c-458c-833a-8839c79e06b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to