# Converting UNIX format to normal human format

**URL:** https://discourse.nodered.org/t/converting-unix-format-to-normal-human-format/43510
**Category:** General
**Created:** [1 April 2021 12:08 UTC](https://discourse.nodered.org/t/converting-unix-format-to-normal-human-format/43510 "2021-04-01T12:08:17Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Nikolay](https://avatars.discourse-cdn.com/v4/letter/n/a698b9/32.png) [@Nikolay](https://discourse.nodered.org/u/Nikolay)
#### Post date: [6 April 2021 14:14 UTC](https://discourse.nodered.org/t/converting-unix-format-to-normal-human-format/43510/3 "2021-04-06T14:14:55Z")

</div>

I found a better solution based on the post [Timestamp to current date and time? - #22 by Paul-Reed](https://discourse.nodered.org/t/timestamp-to-current-date-and-time/873/22) .

var i;  
for (i = 0; i \<msg.payload.length; i++) {

var now = new Date(msg.payload[i].TIMESTAMP).toLocaleString("en-GB");

msg.payload[i].TIMESTAMP = now;

}

return msg;

---

_[View the full topic](https://discourse.nodered.org/t/converting-unix-format-to-normal-human-format/43510)._
