On Thursday, July 30, 2020 at 7:02:51 PM UTC-7, TW Tones wrote:
>
> For example provide a literal date as a variable via the list, but use the 
> title as a field
> <$list filter="[[20210506]]">
> <$view field=title format="date" template="YYYY-0MM-0DD"/>
> </$list>
>

Very clever!

Note also that you can use the <$tiddler> widget to achieve the same effect:
<$tiddler tiddler="20210506">
<$view field=title format="date" template="YYYY-0MM-0DD"/>
</$tiddler>

I just updated http://TiddlyTools.com/timer.html to use this technique in 
the TiddlyTools/Timer, timer_showdate() macro.

Previously, I was constructing my date/time format by manually splitting 
the 17-digit timestamp into parts and
then outputting the parts individually.    Using your method of formatting 
a variable containing a timestamp,
the code is much simpler... and, it also made it possible to add a 
configuration option in TiddlyTools/Timer/Setup
so that the Task timer date/time format now can be easily customized.

Good catch!

-e


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0d4fcbc1-99d8-48fd-b9a9-d44898b1b213o%40googlegroups.com.

Reply via email to