DateTime Formatting

Need help getting DateTime item formatted. I’ve been trying various examples, but no success.
Mike_Last_Triggered is a DateTime item. All I get for the date-time item is:
2021-02-02T14:01:33.195624-0500 .

rule “Mike’s lastupdate”
when
Item Mike changed from ON to OFF
then
Mike_Last_Triggered.postUpdate
end

Any help would be appreciated. Thanks!

Where are you looking at it? What would you like to see instead?

I was looking at my HABPanel menu. I would like to see something like this:
Tuesday, 02.02,2021 4:59 pm

You could use ‘State Description’ meta data on the item with a pattern similar to:

%1$tA %1$td.%1$tm,%1$tY   %1$tI:%1$tM %1$Tp

For reference OpenHAB appears to use a simple formatter and the conversions can be found at Formatter (Java Platform SE 7 ) (oracle.com)

Thanks for you help Sunny. I entered that in the meta data ‘State Description’ like you said. On the item in Openhab3 it shows “Tuesday 02.02,2021 02:01 PM”. Which is great, but when I go to HABPanel it’s totally empty. It neither shows what I had before or what it should show on the item now.

I haven’t used HABPAnel so am unsure as to how it retrieves the Item value to display. The built-in widgets for the new UI should use this new value, if not you access it using an expression like ‘itemName.displayState’

Perhaps someone who is using HABPanel can provide you a proper answer.

Thanks for pointing me in the right direction Sunny. I figured it out the HABPanel setting I needed.