# Changing global variable inside the function node

**URL:** https://discourse.nodered.org/t/changing-global-variable-inside-the-function-node/8757
**Category:** General
**Created:** [8 March 2019 22:21 UTC](https://discourse.nodered.org/t/changing-global-variable-inside-the-function-node/8757 "2019-03-08T22:21:02Z")
**Posts on this page:** 1
**Showing post:** 51

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [13 March 2019 15:19 UTC](https://discourse.nodered.org/t/changing-global-variable-inside-the-function-node/8757/51 "2019-03-13T15:19:13Z")

</div>

> [@Petr](#):
>
> Maybe because `strftime` formating is not built in NR.

That doesn't address what I said, I don't know why one would need the datetime as a string in numerous places in the flows.

---

_[View the full topic](https://discourse.nodered.org/t/changing-global-variable-inside-the-function-node/8757)._
