Hi Devs,
Im trying to reference variable inside a javascript function to get a expected output in AA? how can i achive that?. I can able to reference one variable but for multiple variables i got stuck.
Adding my below JS script:
function addDaysToTimestamp(timestamp, daysToAdd) { // Convert the timestamp to milliseconds and create a Date object let date = new Date(timestamp * 1000); // Add the specified number of days date.setDate(date.getDate() + daysToAdd); // Convert the new date back to Unix timestamp (in seconds) return Math.floor(date.getTime() / 1000); }