# Dashboard ui\_Form Date

**URL:** <https://discourse.nodered.org/t/dashboard-ui-form-date/32511>\
**Category:** Dashboard\
**Created:** [6 September 2020 15:24 UTC](https://discourse.nodered.org/t/dashboard-ui-form-date/32511 "2020-09-06T15:24:43Z")\
**Posts on this page:** 1\
**Showing post:** 18

<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:** [7 September 2020 10:25 UTC](https://discourse.nodered.org/t/dashboard-ui-form-date/32511/18 "2020-09-07T10:25:38Z")

</div>

Demo...

Chosen date was 2020/09/06...  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/8/28ece57c9ad9e7396737d2852bd56349368f01f3.png)  
... times are output in UTC, I am in UTC+1 (so add the offset and you get 00:00 of the correct date)

The issue is purely visual - the date / time is in-fact correct, merely represented as UTC.

If need be, you can use a function like below to get a local date/time representation...

```auto
function convertUTCDateToLocalDate(date) {
    var newDate = new Date(date.getTime()+date.getTimezoneOffset()*60*1000);

    var offset = date.getTimezoneOffset() / 60;
    var hours = date.getHours();

    newDate.setHours(hours - offset);

    return newDate;   
}

```

---

_[View the full topic](https://discourse.nodered.org/t/dashboard-ui-form-date/32511)._
