Thank you.
I understand now that in TWC macros generate and render DOM elements and
cannot be used as parameters for other macros.
For whatever reason I still have trouble with the code.
When I write <<tiddler {{(new Date(new Date() +
86400000).formatString('YYYY0MM0DD')}}>> it gives me "Error in macro
<<tiddler>>".
To try to see if I missed something I used the WriteIt Plugin and all of
the following lines display correctly:
<<writeIt {{(new Date()).formatString('YYYY0MM0DD')>> gives "20150623"
(today's date);
<<writeIt {{(new Date(0)).formatString('YYYY0MM0DD')>> gives "19691231" (as
mentioned in the answer);
<<writeIt {{(new Date(0 + 86400000)).formatString('YYYY0MM0DD')>> gives
"19700101".
However when I write:
<<writeIt {{(new Date(new Date() + 86400000)).formatString('YYYY0MM0DD')>>
I get "*NaNNaNNaN*".
What did I miss?
Regards,
Johannes
On Tuesday, June 23, 2015 at 11:00:35 AM UTC-4, jpt wrote:
>
> Hello,
> Using a suggestion that was made in this group I am able to display a
> tiddler titled with a specific date ("20150623" for example) by writing
> this:
> <<tiddler {{(newDate()).formatString ('YYYY0MM0DD')}}>>
> However I can not figure out how to format it so it displays a tiddler
> with a date other than today, e.g. tomorrow's date.
> I also tried the DatePlugin and wrote this:
> <<tiddler {{showDate(Y M D+1 "YYYY0MM0DD"}}>>
> but it gives me an error message.
> What am I doing wrong?
> Best,
> Johannes
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/5c7c4350-70d9-4e6c-99ca-9782a0e8c102%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.