OH3 Date time conversion

Hi there

I’m really struggeling to understand the new Java time in OH3

Hope there is someone who can help me convert an OH2 line I have in a rule?

var event_update = event.lastUpdate.toDateTime.toString("dd-MM-yy HH:mm")

I found what I was looking for here


Sorry :slight_smile:

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.