Anyone one convert timestamp (epoc) to formatted time string in a single change node?

Anyone one convert timestamp (epoc) to formatted time string in a single change node? Say YYYY-MM-DD HH:MM:SS representation. No need for local time, just a UTC epoch to formatted string.

Change node with Jsonata, which has the momentjs library built in.

oops the HH:MM:SS should be HH:mm:ss :wink: but i hope you get the gist. Documentation.

1 Like

Or
$fromMillis(payload, "[Y]-[M01]-[D01] [h01]:[m01]:[s01]")

1 Like

I have GOT to spend some REAL time with JSON functions/data. I have barely used XPATH, so have some learning to do there as well. Thanks guys, this is great, thanks for the nudge in the right direction!