[pmwiki-users] Adding/subtracting days to ftime Page Text Variable

kirpi at kirpi.it kirpi at kirpi.it
Wed Sep 3 12:41:11 CDT 2014

> Is there any workaround, please?

I tried and do my homework.
Although probably disgusting to well-trained coders, it seems that
such a bunch of lines

  var date_changer = new Date("(:htmlend:){$:MyDate}(:html:)");
  var my_new_date = new Date(date_changer).toISOString().slice(0, 10);
  document.write("MyNewDate:" + my_new_date);

when placed on a html-enabled, password-protected wiki page, gives as
a result a new PageTextVariable that can be used as usual.

Thanks again!


More information about the pmwiki-users mailing list