I'm using a tiddlywiki for my job. I contains journal items (with only
the date in the title) as well as meeting reports (with the date and
other text in the title) as well as a lot of other (not date related)
tiddlers.
I use a script (see bellow) to return a list of all the journal
tiddlers since the starting date of a project. But now I want to
extend it so it will list all the tiddlers where there is a date in
the title. (I need to list all the journals + all the meeting reports
in a chronological list).
I use the script below and know I have to change the
store.tiddlerExists( vandaag.formatString('DD mmm YY') )
into something else. I guess something in combination with
tiddler.title.contains( vandaag.formatString('DD mmm YY') )
But I can't figure out exactly how to put it together. Is there
anybody who can help?
<<tiddler ShowValue with:{{
txt ="|noborder top|k\n";
var EndDate = new Date();
var StartDate = new Date("August 1, 2011")
for (var
vandaag=EndDate;vandaag>StartDate;vandaag.setDate(vandaag.getDate()-1))
{
if (store.tiddlerExists(vandaag.formatString('DD mmm YY'))) {
txt += "| [["+vandaag.formatString('DD mmm YY')+"]]|\n";
}
}
result = txt;
}}>>
many thanks in advance !
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.