# Date format headache

**URL:** <https://discourse.nodered.org/t/date-format-headache/100592>\
**Category:** General\
**Created:** [18 March 2026 14:05 UTC](https://discourse.nodered.org/t/date-format-headache/100592 "2026-03-18T14:05:36Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [21 March 2026 12:52 UTC](https://discourse.nodered.org/t/date-format-headache/100592/21 "2026-03-21T12:52:42Z")

</div>

> [@jbudd](#):
>
> jsonata

Just a reminder that JSONata on Node-RED already has moment.js built in.

---

<div class="post-metadata">

**Author:** ![ThingsTinkerer](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@ThingsTinkerer](https://discourse.nodered.org/u/ThingsTinkerer)\
**Post date:** [24 March 2026 09:53 UTC](https://discourse.nodered.org/t/date-format-headache/100592/22 "2026-03-24T09:53:45Z")

</div>

That's great. But still the issue is adding more code to debug. Every node I want to debug would need this additional code, and all of them unique since they typically have different format. And need to be cleaned up afterwards. Instead of debugging directly which works everywhere all the time with no clean up. If I went down that route, I'd rather just do it in a function node with normal js (and moment) instead of dealing with jsonata.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [24 March 2026 11:04 UTC](https://discourse.nodered.org/t/date-format-headache/100592/23 "2026-03-24T11:04:21Z")

</div>

As people have said, if someone provides a working PR , it will be considered for the next Node-red release.

In the meantime, another possible work-around is an inject node, db query or a function node somewhere along your flow to add a new message property msg.mydateformat.

Set the debug node to display this rather than msg.payload

---

<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:** [22 June 2026 11:04 UTC](https://discourse.nodered.org/t/date-format-headache/100592/24 "2026-06-22T11:04:30Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/date-format-headache/100592.md?page=1)
