Hi Stephan
I'm trying to make timeline, calendar and newjournal output the same date
format.
I'm using $:/macros/bj/Calendar/journalfmt.js for my calendar because I
want dates to be links to tiddlers.
To me it looks as if the linkformat for dates is set in
$:/macros/bj/Calendar/journalfmt.js
I think I d not completely understand it, but I think, you need to make a
copy of the mentioned tiddler and should simply replace
date.getDate()+' '+$tw.config.dateFormats.months[date.getMonth()]+'
'+date.getFullYear()
with something like:
$tw.utils.formatDateString(date, -MM-DD)
--
I'm not exactly sure, what you're trying to achieve, but maybe it will help
you iif you check the code of my dateTimeMacro located on
http://tiddlystuff.tiddlyspot.com/
You can used built-in functions for date and time:
$tw.utils.formatDateString(ts, format);
where format could be for
3 matches
Mail list logo