[tw] Re: [tw5] Date link format question..

2014-04-28 Thread Stephan Hradek
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")



-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [tw5] Date link format question..

2014-04-28 Thread Måns
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
- this is where copied the code-snippet from.

You'll find the tiddler in my document here: http://xn--mns-ula.dk/hutudu/ 

For saving changes you can use name:"hradek" pswd: "tester" or tester 
tester...

Cheers Måns Mårtensson

Den søndag den 27. april 2014 00.24.22 UTC+2 skrev Stephan Hradek:
>
> 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 example:
>
> format = "-0MM-0DD 0hh:0mm:0ss";
>
>
>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [tw5] Date link format question..

2014-04-26 Thread Stephan Hradek
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 example:

format = "-0MM-0DD 0hh:0mm:0ss";



-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.