Hello,
A new member here (but I have read a lot over the last few years). Usually I manage to solve any TW problems with lots of searching, but can’t seem to overcome this one.
I want to get user input to create a new tiddler with the title “2024.09.11.Wed” or whatever date they want. This will be text and not a date format. The following code needs to set a tag to “2024.09”:
tags={{{ [[{{!!_long-date}}]split[]first[3]join[]] }}}/>
which won’t work. I adapted it from this code:
{{{ [[This is my string]split[]first[3]join[]] }}}
which does work as it is. Here is the full tiddler
\define temp() $:/temp/input/$(currentTiddler)$
Date eg 2024.08.18.Sun:<$edit-text tiddler=<<temp>> field="_long-date"/>
<$button>
<$view tiddler=<<temp>>>New Entry</$view>
<$tiddler tiddler=<<temp>>>
<$action-setfield $tiddler={{!!_long-date}} entry_date={{!!_long-date}} tags={{{ [[{{!!_long-date}}]split[]first[3]join[]] }}}/>
</$tiddler>
<$action-deletetiddler $tiddler=<<temp>> />
</$button>
Any thoughts or advice would be most appreciated!
Perisher.