I'm thinking it might be worth you using the 5.2 pre-release version of TiddlyWiki, seeing as it has the ISO date format.
However, if you do want to continue with the workaround: I wouldn't bother with javascript. You have all you need in TiddlyWiki: https://tiddlywiki.com/#Making%20a%20custom%20journal%20button What do you think? On Sunday, September 12, 2021 at 7:26:51 AM UTC-3 J N wrote: > Thank you for the suggested workaround. > > Is it possible to define that operation in a tiddler and then refer to the > value in a template for creating a new journal entry? > > If so, maybe one could also use JavaScript directly to provide the value > for the tiddler template. > > > On Saturday, 11 September 2021 at 15:19:35 UTC+2 cj.v wrote: > >> * Oops, typo in the last "search-replace" * >> >> "[Thu],[7]" should be "[Sun],[7]" >> >> The dangers of mindless cut and paste ... >> >> On Saturday, September 11, 2021 at 12:49:23 AM UTC-3 Charlie Veniot wrote: >> >>> G'day, >>> >>> Just to get the conversation started, try this in a new tiddler in some >>> tiddlywiki: >>> >>> <$vars dateNow= <<now wYYYY-W0WW-ddd>>> >>> >>> {{{ >>> [<dateNow>search-replace:[Mon],[1]search-replace:[Tue],[2]search-replace:[Wed],[3]search-replace:[Thu],[4]search-replace:[Fri],[5]search-replace:[Sat],[6]search-replace:[Thu],[7]] >>> >>> }}} >>> >>> </$vars> >>> >>> >>> -- 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/9bbeae75-b1be-4526-9132-f5855ac8f90dn%40googlegroups.com.

