# Ui\_date\_picker + ui\_text\_input (mode: time picker)

**URL:** <https://discourse.nodered.org/t/ui-date-picker-ui-text-input-mode-time-picker/16386>\
**Category:** Dashboard\
**Created:** [6 October 2019 15:42 UTC](https://discourse.nodered.org/t/ui-date-picker-ui-text-input-mode-time-picker/16386 "2019-10-06T15:42:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcj](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mcj/32/12943_2.png) [@mcj](https://discourse.nodered.org/u/mcj)\
**Post date:** [6 October 2019 15:42 UTC](https://discourse.nodered.org/t/ui-date-picker-ui-text-input-mode-time-picker/16386/1 "2019-10-06T15:42:14Z")

</div>

I am using ui\_date\_picker and an ui\_text\_input (mode: time picker) in order to get a specific data from the DB and put them in an ui\_chart.

I realized one situation in the ui\_data\_picker. It returns the date, but it also return a "dirty part".  
For example, if I select the day Oct 07 2019 it returns in the payload a value: 1570456275476.  
If I convert the value from milliseconds to a human readable format I have:  
Oct 07 2019 10:51:15.  
As you can see, it returned a time period that I have called "dirty part", that seems to be the time I inserted the "ui\_date\_picker" in my flow.  
So, to solve that I inject a known value of day that contain a value of hour equal to 12:00AM (0).

Another situation I got is about the ui\_text\_input (mode: time picker). The situation happens just once in the first moment I run node-red.  
I try to inject a start value for the the ui\_text\_field but it does not update the dashboard web page.  
I realized if I put a value manually in the dashboard field and after I inject the value I had tried before then it updates .

 ![Screenshot%20from%202019-10-06%2012-36-37](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/1cf7da1b2c8ae2c70b95f25de6fbfeb3c88aa829.png)

Google Chrome:  
Version 77.0.3865.90 (Official Build) (64-bit)  
Node-red:  
0.20.8  
node-red-dashboard:  
2.16.3

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [7 October 2019 20:21 UTC](https://discourse.nodered.org/t/ui-date-picker-ui-text-input-mode-time-picker/16386/2 "2019-10-07T20:21:23Z")

</div>

The first problem (the fact that the date picker returns a value with the time set to the time the node was added to the flow is a known issue that was discussed here recently.
