I'm newly developing with the office.js and I would like to know if there is a way to convert serial numbers (Date Values) into date formatted using Excel Javascript API.
I have this custom function:
/*
* @customfunction
* @param {number} first
* @param {number} second
* @param {string} third
* @returns {number[][]}
*/
function GETDADOS(first, second, third) {
var promise = new Promise(function(resolve){
$.ajax({
...
//HTTP requisition
...
}
});
})
return promise.then(function(result){
var data = result
var resp = JSON.parse(data)
return resp
})
})
};
That provides me this output:
[[44225,1.8541],[44232,1.874],[44239,1.94]]
The first column is the date value to be transformed.
EX: US 35062 -> 12/29/2021, UK 35062 -> 29/12/2021
I saw this way but I'm feeling a little bit confused: