Code for the date picker I took from this example.
Date is not getting transfered to the filter. What’s wrong in this filter ? Here is the demo link.
AFAICT official edit-text widget doesn’t provide fromInputValue nor toInputValue attributes, so I’ll take it that you use custom code for these.
Anyway, in your list-links filter you use a wrong syntax for macro/variable reference: in a filter you should use single angle brackets, something like this:
In your current demo the date picker fills the fields with ISO-formatted values (YYYY-MM-DD) and these can not be directly compared with the compare:date filter operator. You’d have to parse and convert startdate and enddate content before comparing them with TW native dates like those in created field.
In the wiki where you found the example code, the $:/core/modules/editor/factory.js shadow tiddler contains code for toInputValue and fromInputValue attributes, which is not found in your wiki. This explains why the original code doesn’t work in your wiki.
I guess Eric Shulman’s time and date operators could solve the conversion problem, but I won’t be able to help you further as I don’t know them enough.
I added a $select widget to choose between created or modified field and removed all unnecessary parameters from the $edit-text widgets
The $let widget gets the input values and uses my TiddlyTools parsedate[] filter operator to convert the ISO-formatted date strings to TWCore 17-digit UTC system datetime values. You will need to install https://tiddlytools.com/#TiddlyTools%2FTime%2FParseDate to add the parsedate[] filter operator.
I added !is[system] to the filter and use a $list widget instead of a <<list-links>> macro. This permits greater control over the list output to include the created/modified date along with each matching tiddler link instead of just plain bullet items with tiddler links.
@EricShulman Thank you once again for your help. I am experimenting with it to add more features. Some of my ideas are - add a “Today” and “Yesterday” button to list tiddlers created or modified today / yesterday. I need to think of other ideas as well and see other similar implementations.