13 Aug
2018
13 Aug
'18
3:57 p.m.
On 08/13/2018 05:19 PM, Jan U. Hasecke wrote:
Hi all,
I want to insert a due date for payments in my invoice and I would like to calculate it from \currentdate. Something like
define \duedate = \currentdate plus 10 days
Is this possible?
Hi Jan-Ulrich, if you don’t mind using Lua, here you have it: \starttext \def\duedate{\cldcontext{os.date('\letterpercent d/\letterpercent m/\letterpercent Y', os.time()+ 10 * 24 * 3600)}} \duedate \stoptext Just in case it helps, Pablo -- http://www.ousia.tk