# Save information to file out with date/time for each information

**URL:** https://discourse.nodered.org/t/save-information-to-file-out-with-date-time-for-each-information/15976
**Category:** General
**Created:** [27 September 2019 06:14 UTC](https://discourse.nodered.org/t/save-information-to-file-out-with-date-time-for-each-information/15976 "2019-09-27T06:14:29Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)
#### Post date: [1 October 2019 15:05 UTC](https://discourse.nodered.org/t/save-information-to-file-out-with-date-time-for-each-information/15976/3 "2019-10-01T15:05:03Z")

</div>

As always, NR gives you lots of ways to do things. Possibly the most simple, using only core nodes, would be something like this.

```auto
[{"id":"c4310b2a.540fb8","type":"inject","z":"bef81aa8.c22888","name":"","topic":"","payload":"75","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":120,"wires":[["e656e38f.c43398"]]},{"id":"e656e38f.c43398","type":"change","z":"bef81aa8.c22888","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload & ' ' & $now()","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":120,"wires":[["43cb85be.b7a08c"]]},{"id":"43cb85be.b7a08c","type":"debug","z":"bef81aa8.c22888","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":470,"y":120,"wires":[]}]

```

 ![flow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/753a1937c81a61689de946c6c1929dd89c37c966.jpeg)

If you are not happy with the date format given by the JSONata `$now` function, you will have to do a bit more work.

---

_[View the full topic](https://discourse.nodered.org/t/save-information-to-file-out-with-date-time-for-each-information/15976)._
