For anyone stumbling across this in the future and who doesn't want to use extra nodes (or JSONata since Moment is now built into that as well), should note that it is very simple to write a quick JavaScript function to do this. It is just a few lines of code.