# Date picker -\> flow context gives 'undefined'

**URL:** <https://discourse.nodered.org/t/date-picker-flow-context-gives-undefined/72918>\
**Category:** Dashboard\
**Created:** [29 December 2022 20:19 UTC](https://discourse.nodered.org/t/date-picker-flow-context-gives-undefined/72918 "2022-12-29T20:19:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nograin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nograin/32/67997_2.png) [@nograin](https://discourse.nodered.org/u/nograin)\
**Post date:** [29 December 2022 20:19 UTC](https://discourse.nodered.org/t/date-picker-flow-context-gives-undefined/72918/1 "2022-12-29T20:19:38Z")

</div>

i'm struggling with setting a date range from UI for building an URL for an API request with it.

while debugging, i reduced it to the bare minimum, or what i think it is:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/467227619b911dd0ced1f1fc7bf396e5eb0c6f79.png)

the date picker is set to 'send to flow.date' and the debug node got the jsonata expression `$flowContext('date')` in it..

`[{"id":"632171e5dee12a3b","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"11d43ec994891a14","type":"ui_date_picker","z":"632171e5dee12a3b","name":"","label":"","group":"c36f05191feca79e","order":6,"width":0,"height":0,"passthru":false,"topic":"date","topicType":"flow","className":"","x":510,"y":80,"wires":[["8ce861aae6ee7719"]]},{"id":"8ce861aae6ee7719","type":"debug","z":"632171e5dee12a3b","name":"debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$flowContext('date')","targetType":"jsonata","statusVal":"","statusType":"auto","x":730,"y":80,"wires":[]},{"id":"c36f05191feca79e","type":"ui_group","name":"test","tab":"15ebcf5.c678631","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"15ebcf5.c678631","type":"ui_tab","name":"Home","icon":"dashboard","order":"1"}]`

what am i missing? 🙄

---

<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:** [29 December 2022 21:07 UTC](https://discourse.nodered.org/t/date-picker-flow-context-gives-undefined/72918/2 "2022-12-29T21:07:04Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/4/d44287422628eb259d6f2187db155bdd731259a2.png)

That doesn't do what you think. It sends the date value in msg.payload, and in msg.topic it sends whatever is currently in flow.date.

---

<div class="post-metadata">

**Author:** ![nograin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nograin/32/67997_2.png) [@nograin](https://discourse.nodered.org/u/nograin)\
**Post date:** [29 December 2022 23:35 UTC](https://discourse.nodered.org/t/date-picker-flow-context-gives-undefined/72918/3 "2022-12-29T23:35:24Z")

</div>

doh. been away from node red for way too long again it seems.. ☺ thanks.

but question: where's that "memoryOnly" and "database" icon/dropdown in your screenshot coming from?

---

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [30 December 2022 02:03 UTC](https://discourse.nodered.org/t/date-picker-flow-context-gives-undefined/72918/4 "2022-12-30T02:03:36Z")

</div>

[https://nodered.org/docs/user-guide/context](https://nodered.org/docs/user-guide/context)

 ![Screenshot_2022-12-30-07-32-11-194_com.android.chrome](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/3/93743751c1d2bc31b83a76f0004afcf07ea953f5.jpeg)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [30 December 2022 19:52 UTC](https://discourse.nodered.org/t/date-picker-flow-context-gives-undefined/72918/5 "2022-12-30T19:52:27Z")

</div>

The multiple context stores are defined in settings.js which exists in the .node-red folder

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 February 2023 19:53 UTC](https://discourse.nodered.org/t/date-picker-flow-context-gives-undefined/72918/6 "2023-02-28T19:53:17Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
