can I loop through an array and convert the values?
Eugene Katz
Posts: 51 ✭✭
Is there a way I can loop through this array and convert the values to `'%Y-%m-%dT%H:%M:%S'`
0
Answers
-
You could use a <https://docs.cribl.io/stream/code-function|Code Function> + https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map|Array.map() ```try { __e["push_results"] = __e["push_results"] .map(el => { return C.Time.strftime(el, '%Y-%m-%dT%H:%M:%S') }) } catch (err) {}```
0 -
You'll need a Code function.... haha there it is
0 -
Hehehe
0 -
Worked perfectly, thank you both
0 -
WOOHOO!
0