OH3 - ECMA: totally confused by date-variables, coding, casting and stuff

Just as I thought, I had it all, it slipped. And now I’m confused and don’t see the forest for the trees, I’m afraid.

So, openHAB3 uses ZonedData instead of Joda? what does Javascript/ECMA use then in the rules? how can I convert one for the other to do some logic on it…?
Is there a place I forgot to look, where’s like some examples and stuff on how to use dates properly in OH3 (ECMA)Script rules…? thanks!

For me this was useful when I had problems with date/time conversion DateTime Conversion (openHAB 3.x)


Thanks, I’ll work through that!