The following lines in a JS library:
var c_sysDate = Date();
var c_date = c_sysDate.getDate();
are producing the following error log entry:
JS library compilation error detected. Cause: org.mozilla.javascript.EcmaError: TypeError: Cannot find function getDate in object Fri Oct 25 2019 10:32:29 GMT-0400 (EDT).
All the documentation I have found indicates that getDate() is a standard Date library function. How can this be overcome?