okay, so I managed to get this javascript running: function daydiff() { var date1 = new Date("7/13/2010"); var date2 = new Date("12/15/2010"); var timeDiff = Math.abs(date2.getTime() - date1.getTime()); var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24)); return diffDays } console.log(daydiff())
I put that in a myscript.js, and at the terminal ran "node myscript.js" and it spit out "156" on the next line. How would that translate into TW5? -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/72a9d363-94a2-403e-b177-6ae15ad37785%40googlegroups.com.