Gateway Scripts - system.date.now and system.date.addWeeks

I think this should work:
StartDate = system.date.now
EndDate = system.date.addWeeks(StartDate, 4)

But I get this error:
Caused by: org.python.core.PyException: Traceback (most recent call last): File “”, line 2, in TypeError: addWeeks(): 1st arg can’t be coerced to java.util.Date

Any ideas?

StartDate = system.date.now()

:wink:

3 Likes