I am receiving an error of getFullYear is not a function. Is it possible that some function cannot be reached from the backend quick test environment.
Here is my code:
export function dateToString ( dDate ) {
let dtYYYY = dDate . getFullYear () * 10000 ;
let dtMM = ( dDate . getMonth () + 1 ) * 100 ;
let dtDD = dDate . getDate ();
let dtCalc = dtYYYY + dtMM + dtDD ;
let res = new String ;
res = dtYYYY + dtMM + dtDD ;
console . log ( "res= " + res + " dDate= " + dDate + " dtCalc= " + dtCalc + " dtMM= " + dtMM + " dtDD= " + dtDD )
return ( res . toString ());
}
Result when running the backend function:
Somebody can explain. Thanks
