Code: Select all
function getCurrentDate() {
var d = new Date();
var df = nuPad2(d.getMonth() + 1) + '/' + nuPad2(d.getDate() + '/' + d.getFullYear());
return df;
}
nucommon.js?ts=20230208091545:2832 Uncaught TypeError: d.getFullYear is not a function
at nuSetDateValue (nucommon.js?ts=20230208091545
at reportCreated (index.php:25:2)
at xhr.onreadystatechange (nuajax.js?ts=20230208091545:227:7)
Any ideas? I get the same error with just a cut and paste from the example too.