Visualize data in openhab panel's widget

weather
widget
customwidget
Tags: #<Tag:0x00007f015a2c71c8> #<Tag:0x00007f015a2c7060> #<Tag:0x00007f015a2c6e58>

(nively) #1

Dear all,
I would like to have a widget where I can visualize today, tomorrow and day after tomorrow in this format gg-mm-yyyy. I have an item called date taken with ntp but this item shows milliseconds as well.

With this
<div class="col-xs-3"><span style="color: cyan; font-size: 12pt">{{itemValue(Date)}}</span></div>
I would like to see the date in the format I wrote above

Thank you
Dev


(Vincent Regaud) #2

https://docs.angularjs.org/api/ng/filter/date


(Vincent Regaud) #3

@dev
For next time, do a quick goole search before posting on the forum.
I could a refered you to:


And point you to item 8

But this one took me 5 seconds