Hi Guys,
im using OH2 for a while now .
Now i am again at a point where i need help.
This:
val String transdatetimePOWR2 = LastUpdatePOWR2.state.format("%1$td.%1$tm.%1$tY")
LastUpdateFromDateTimeTypePOWR2.postUpdate(transdatetimePOWR2)
converts “2020-08-06T20:50:24.092+02:00” to this “2020-08-06” which works fine.
Now i am trying to convert a “now.createTimer” value “2020-08-06T20:50:24.092+02:00” instead of the “LastUpdatePOWR2” variable to a readable format “2020-08-06 20:50:24”.
When i use the same two lines and putting the now.createTimer value instead of the “LastUpdatePOWR2” i get the following error message: “Rule ‘Test Timer Set 1’: ‘format’ is not a member of ‘org.joda.time.DateTime’; line 8, column 49, length 52”
can anyone point me to the step where i can transform the now.createTimer value into a readable YMD HMS format please.
Thnx in advance