# Date null value from Xano, results in invalid date

**URL:** <https://community.weweb.io/t/date-null-value-from-xano-results-in-invalid-date/5637>\
**Category:** Ask us anything\
**Tags:** binding, xano\
**Created:** [November 30, 2023, 8:32am UTC](https://community.weweb.io/t/date-null-value-from-xano-results-in-invalid-date/5637 "2023-11-30T08:32:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FJP84](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FJP84](https://community.weweb.io/u/FJP84)\
**Post date:** [November 30, 2023, 8:32am UTC](https://community.weweb.io/t/date-null-value-from-xano-results-in-invalid-date/5637/1 "2023-11-30T08:32:13Z")

</div>

Hi there,

I am creating a form that fetches data from Xano. When I get a null value from Xano for a date i get in Weweb an InvalidDate value.

My workaroud is to set a state on the date field and hide it when the date value is null, but this is quit cumbersome.

Question: how can I use null values in date form components?

---

<div class="post-metadata">

**Author:** ![AgentD](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/agentd/32/6331_2.png) [@AgentD](https://community.weweb.io/u/AgentD)\
**Post date:** [November 30, 2023, 11:31am UTC](https://community.weweb.io/t/date-null-value-from-xano-results-in-invalid-date/5637/2 "2023-11-30T11:31:36Z")

</div>

Hi @FJP84 in programming, ‘null’ values are ‘nothing’, literally. So you cannot ‘use’ nothing to do ‘something’, do you get?

If you have a specific functionality you wanna achieve in mind, feel free to share it. Then folks can help. But I think your work around is just as fine.

---

<div class="post-metadata">

**Author:** ![FJP84](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FJP84](https://community.weweb.io/u/FJP84)\
**Post date:** [November 30, 2023, 10:56pm UTC](https://community.weweb.io/t/date-null-value-from-xano-results-in-invalid-date/5637/3 "2023-11-30T22:56:32Z")

</div>

Ok thanks. I was expecting that null would leave the datepicker/date component value empty, not causing the invalid date text.

---

<div class="post-metadata">

**Author:** ![FJP84](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FJP84](https://community.weweb.io/u/FJP84)\
**Post date:** [January 3, 2024, 9:48am UTC](https://community.weweb.io/t/date-null-value-from-xano-results-in-invalid-date/5637/4 "2024-01-03T09:48:43Z")

</div>

The solution can be found here: [Working with timestamps - #23 by dorilama](https://community.weweb.io/t/working-with-timestamps/653/23)
