I build a little macro which seems to fullfill what I'm looking for: /*\ title: $:/core/modules/macros/date_title.js type: application/javascript module-type: macro
Macro to get the date from a tiddler title if title is starting with an american date format (yyyymmdd) and convert it to date format dd.mm.yyyy. \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; /* Information about this macro */ exports.name = "date_title"; exports.params = []; /* Run the macro */ exports.run = function() { return this.getVariable("currentTiddler").substring(6,8) + "." + this. getVariable("currentTiddler").substring(4,6) + "." + this.getVariable( "currentTiddler").substring(0,4); }; })(); -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/02a59250-a4e0-4d53-a350-75d9f8588b70%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.