# Get DayOfTheYear from moment node?

**URL:** https://discourse.nodered.org/t/get-dayoftheyear-from-moment-node/77009
**Category:** General
**Tags:** function-node
**Created:** [28 March 2023 08:40 UTC](https://discourse.nodered.org/t/get-dayoftheyear-from-moment-node/77009 "2023-03-28T08:40:30Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [28 March 2023 12:52 UTC](https://discourse.nodered.org/t/get-dayoftheyear-from-moment-node/77009/8 "2023-03-28T12:52:12Z")

</div>

Is functionExternalModules set to true in your settings.js.  
[Writing Functions : Node-RED](https://nodered.org/docs/user-guide/writing-functions#using-the-functionexternalmodules-option).  
Also you can use JSONata in the function node see [here](https://discourse.nodered.org/t/using-moment-js-in-a-function-node-nr-3-01-2023/76916/7)

---

_[View the full topic](https://discourse.nodered.org/t/get-dayoftheyear-from-moment-node/77009)._
