DateTime item published via MQTT

Dear all,

i do want to publish an OpenHAB date and time item via mqtt.
I am using the NTP Binding to get the datetime, created 2 items: one for date and one for time.
Inside these items i adapted the Metadata to get readable values.
For date: %1$td.%1$tm.%1$tY 17.08.2021
For time: %1$tH:%1$tM 12:13

However, when i link these items to an MQTT string or datetime channel (follow mode) i am publishing the strage datetime format again 2021-08-17T12:13:38.227+0200

Is there a way to publish the adapted time or date format as a string?
I tried something with REDEX but i really dont know what to do there …

You probably want to use the MQTT channel “format before publish” option.

If you’ve used follow profile to link an NTP channel to MQTT, none of this has anything to do with your Items.

You are right!
I setup a datetime MQTT channel and integrated the format above in the Outgoing Value format!
Its working :slight_smile: