Hi everyone!
I have this code in js
function fDiaLaborable (dFecha){
var dia2 = 1
var mes = dFecha.getMonth();
var anio = dFecha.getFullYear();
var fecha = new Date (anio, mes, dia2)
var dia = fecha.getDay();
if(dia === 6 ){
dia2 = dia2+2;
}
mes = mes+1;
var resultado = dia2+"/"+mes+"/"+anio;
return resultado;
}
It works in Chrome console, but when i'm trying to execute this in A360 doesn't work, I print a message box and says "bot error" I don't have idea what happens, could you help me?
There is my configuration