Javascript date objects don't work that way. Dates are a special class that take care of all of the weirdness that comes with date handling (aside from timezones, nothing seems to help with timezones). The reference is here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
change so you use this: var year = mydate.getUTCFullYear() var month = mydate.getUTCMonth() var day = mydate.getUTCDate() This is part of what tiddlywiki uses to create the timestamps it uses. In the code you show there isn't anything making date2 into a date object, you can use this: var date2 = new Date(year, month, day) Something that always causes trouble is that month is 0-based, so 0 is January. -- 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/b9bb3df6-6d13-48bc-84de-78dc989b6d0a%40googlegroups.com.