I am getting an error on the onload of a form
My function:
function BuildChangeNumber()
{
var currentDate = new Date();
var currentDay = currentDate.getUTCDate();
var currentMonth = currentDate.getUTCMonth();
var currentHour = currentDate.getUTCHours();
var currentMinute = currentDate.getUTCMinutes();
var currentSecond = currentDate.getUTCSeconds();
var tempDate = currentDate.getUTCFullYear()
alert(tempDate);
alert(currentDay);
return tempDate;
}
The on the control I add:
the error:
any help is greatly appreciated.
dynamics 365 version 9.1 on-premise
Thanks
Nick