# Time format for time picker

**URL:** <https://discourse.nodered.org/t/time-format-for-time-picker/29396>\
**Category:** Dashboard\
**Created:** [2 July 2020 17:14 UTC](https://discourse.nodered.org/t/time-format-for-time-picker/29396 "2020-07-02T17:14:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgerardi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jgerardi/32/24878_2.png) [@jgerardi](https://discourse.nodered.org/u/jgerardi)\
**Post date:** [2 July 2020 17:14 UTC](https://discourse.nodered.org/t/time-format-for-time-picker/29396/1 "2020-07-02T17:14:37Z")

</div>

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?

```auto
[{"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}]

```

 ![Screen Shot 2020-07-02 at 1.11.25 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/0/d0a7e27ac6bbdf5f1f23883fd4d1b1c2c6742705.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 July 2020 17:24 UTC](https://discourse.nodered.org/t/time-format-for-time-picker/29396/2 "2020-07-02T17:24:45Z")

</div>

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 🤞

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 August 2020 17:24 UTC](https://discourse.nodered.org/t/time-format-for-time-picker/29396/3 "2020-08-01T17:24:49Z")

</div>

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