How to extract hour and min from DateTime

OK, thanks. Yes, my device is a mystery one. I’m running most of the scripts without any problems but in few cases with a slider card it seems that updating the MB reg lags behind so I have to spend more time with these Items.

With logInfo(“test” , "Etuvalot state " + Etuvalot_Off.state.toString) I get a string in the log file:

1970-01-01T19:30:00.000+0200

so this is in 24 hour format. I took the input card from this post. I’ll have a look at this post again if there is something about the 12/24 hour format.