# Formating current date / time in multiple format with multiple output and simple calculation

**URL:** <https://discourse.nodered.org/t/formating-current-date-time-in-multiple-format-with-multiple-output-and-simple-calculation/91149>\
**Category:** Share Your Nodes\
**Created:** [20 September 2024 17:18 UTC](https://discourse.nodered.org/t/formating-current-date-time-in-multiple-format-with-multiple-output-and-simple-calculation/91149 "2024-09-20T17:18:19Z")\
**Posts on this page:** 6\
**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:** [22 September 2025 09:33 UTC](https://discourse.nodered.org/t/formating-current-date-time-in-multiple-format-with-multiple-output-and-simple-calculation/91149/23 "2025-09-22T09:33:42Z")

</div>

> [@rakgupta](#):
>
> not sure if it has always been there or is new

It arrived a few releases ago.

> [@rakgupta](#):
>
> Any chance there could be something similar for ui-template?

I don't think that D2 is engineered that way, though I may be wrong. Just a nudge though that if you are finding yourrself doing more through ui\_template than with other standard D2 nodes, you might want to consider using UIBUILDER for Node-RED. That has a library manager built in to make delivery of front-end libraries trivial. You can use both side-by-side as well.

---

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [22 September 2025 10:43 UTC](https://discourse.nodered.org/t/formating-current-date-time-in-multiple-format-with-multiple-output-and-simple-calculation/91149/24 "2025-09-22T10:43:36Z")

</div>

> [@TotallyInformation](#):
>
> if you are finding yourrself doing more through ui\_template

Thanks - I'm using ui-templates primarily for charts. I had looked at ui-builder in the past but couldn't quite wrap my head around it. Maybe it's time to give it another look!

---

<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:** [22 September 2025 15:53 UTC](https://discourse.nodered.org/t/formating-current-date-time-in-multiple-format-with-multiple-output-and-simple-calculation/91149/25 "2025-09-22T15:53:22Z")

</div>

> [@rakgupta](#):
>
> I had looked at ui-builder in the past but couldn't quite wrap my head around it. Maybe it's time to give it another look!

It may look complex but is actually very easy to get going. There is a basic walk-through in the documentation and a matching YouTube video if that's your thing. 🙂

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [23 September 2025 04:15 UTC](https://discourse.nodered.org/t/formating-current-date-time-in-multiple-format-with-multiple-output-and-simple-calculation/91149/26 "2025-09-23T04:15:59Z")

</div>

> [@rakgupta](#):
>
> Any chance there could be something similar for ui-template?

You can include the cdn version of dayjs in a ui-template node as well. (or serve it up via http-in/out to have it available 'locally')

> There is a basic walk-through in the documentation

Side note, did you ever consider putting the documentation through AI to make it simple and to the point, ELI5 ? People don't have/take time to read pages and pages full of notes, tips, pitfalls of css, javascript, ecma standards etc. (ie. how relevant is it), it makes it all very confusing.

---

<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:** [23 September 2025 08:42 UTC](https://discourse.nodered.org/t/formating-current-date-time-in-multiple-format-with-multiple-output-and-simple-calculation/91149/27 "2025-09-23T08:42:02Z")

</div>

> [@bakman2](#):
>
> Side note, did you ever consider putting the documentation through AI to make it simple and to the point, ELI5 ?

No, but that's a good idea. I've been writing documentation forever so it didn't occur to me. 😃 I also didn't consider AI to be up to a task like that to be honest as even last year attempts at writing prose using AI came out very poor. However, yesterday I needed to get a work proposal out and was only given a couple of hours from request to delivery. Some careful instructions to ChatGPT 5 came back with something quite usable.

> [@bakman2](#):
>
> People don't have/take time to read pages and pages full of notes, tips, pitfalls of css, javascript, ecma standards etc. (ie. how relevant is it), it makes it all very confusing.

I'm always open to suggestions for improvements. And there is the video walkthrough as well which you can always play on double speed if I'm going too slow (I do that a LOT with other people's).

The problem I've found over the years is that if I trim things down, I inevitably get a raft of more questions. However, perhaps a short "Getting Started" document would complement the more comprehensive walkthrough.

---

<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:** [23 September 2025 08:57 UTC](https://discourse.nodered.org/t/formating-current-date-time-in-multiple-format-with-multiple-output-and-simple-calculation/91149/28 "2025-09-23T08:57:27Z")

</div>

> [@bakman2](#):
>
> did you ever consider putting the documentation through AI to make it simple and to the point

Keep an eye out for another thread that I will share shortly - we will see whether ChatGPT 5 can create something useful.

> [@Attempting new, short "getting started" guides for UIBUILDER for Node-RED](https://discourse.nodered.org/t/attempting-new-short-getting-started-guides-for-uibuilder-for-node-red/99139):
>
> In [another thread](https://discourse.nodered.org/t/formating-current-date-time-in-multiple-format-with-multiple-output-and-simple-calculation/91149/26), @bakman2 asked a great question about whether I had considered trying to get an AI to write a getting started summary for UIBUILDER. For various reasons, I had not! But it was a good suggestion and so, I did. Here is the result. These are the instructions I gave the AI. I used ChatGPT v5 in "thinking" mode. The answers are not perfect by any means but I will see how they can be incorporated into the documentation. Please do comment on them, all input is welcome. Consideri…

[Previous page](https://discourse.nodered.org/t/formating-current-date-time-in-multiple-format-with-multiple-output-and-simple-calculation/91149.md?page=1)
