Changing global variable inside the function node

That doesn't address what I said, I don't know why one would need the datetime as a string in numerous places in the flows.