In a tiddler I have a date picker using
<div style="margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee;">
<strong>From:</strong> <$edit-text tiddler="$:/state/range" field="start" type="date"/>
<strong>To:</strong> <$edit-text tiddler="$:/state/range" field="end" type="date"/>
</div>
and a button as follows:
<$button class="tc-btn-invisible" style="border: 1px solid #ccc; padding: 2px 8px; border-radius: 4px; margin-right: 5px;">
This Month
<$action-setfield $tiddler="$:/state/range" start=<<now "YYYY-0MM-01">> end=<<now "YYYY-0MM-0DD">> />
</$button>
Is it possible for the button to show the last day of the current month instead of today’s date in the “To” date field of the date picker?