Time format for time picker

I want to make a time picker in a text input and then send it on to my tasmota's. I want to set up my dashboard as in the picuure below. Once i enter a time i want to be able pass it on to an mqtt message.
what i have set up so far works but not with a freindly format.
can anyone help?

[{"id":"b4ce563f.e972c8","type":"tab","label":"Flow 5","disabled":false,"info":""},{"id":"ba16fa9e.afe328","type":"ui_text_input","z":"b4ce563f.e972c8","name":"","label":"","tooltip":"","group":"770569a1.76fdf8","order":4,"width":0,"height":0,"passthru":true,"mode":"time","delay":300,"topic":"","x":200,"y":120,"wires":[["38e2a5bd.87d5da"]]},{"id":"38e2a5bd.87d5da","type":"debug","z":"b4ce563f.e972c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":460,"y":140,"wires":[]},{"id":"770569a1.76fdf8","type":"ui_group","z":"","name":"Pool Control","tab":"adf9b6d.875c748","order":1,"disp":true,"width":"6","collapse":false},{"id":"adf9b6d.875c748","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

Try installing moment node or run it through a function and format the time yourself. There are loads of examples floating around the internet of how to format a timestamp in javascript.

Edit...

in fact I'm pretty sure I've seen quite a few examples of formatting a timestamp on this forum - do a quick search you might find something useful :crossed_fingers:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.