you could also use the jsonata expression $moment().dayOfYear()
in a Change node
Demo Flow
[{"id":"305cc609d8d653e6","type":"inject","z":"54efb553244c241f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":260,"y":1360,"wires":[["7d174328c85cee5d"]]},{"id":"7d174328c85cee5d","type":"change","z":"54efb553244c241f","name":"day Of Year","rules":[{"t":"set","p":"payload","pt":"msg","to":"$moment().dayOfYear()\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":430,"y":1360,"wires":[["1bf74ae613636934"]]},{"id":"1bf74ae613636934","type":"debug","z":"54efb553244c241f","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":620,"y":1360,"wires":[]}]