I wanted to create a button that would set the current date as the title of the current date.
So, I wrote:
\define newInformationAction()
<$action-sendmessage
$message="tm-new-tiddler"
title=<<dateTime "YYYY-0MM-0DD ddd">>
tags="Information"/>
\end
<$button class=<<tv-config-toolbar-class>> selectedClass="tc-selected" tooltip="New Information" actions=<<newInformationAction>>>
{{$:/core/images/list-bullet}}
</$button>
This does not work. I think the error is in setting the title. But I am not able to figure out the error.
How do I set things right here?