Using Moment.js in a function node - NR 3.01 - 2023?

it works .. Interesting, never knew those existed :wink:

const expression = '$moment().format("YYYY-MM-DD HH:mm:ss")';

let exp = RED.util.prepareJSONataExpression(expression, node)

RED.util.evaluateJSONataExpression(exp, msg, (err, res) => {
    node.send({ payload : res})
})