# Please help with binding dates in date picker

**URL:** <https://community.weweb.io/t/please-help-with-binding-dates-in-date-picker/8921>\
**Category:** Ask us anything\
**Created:** [June 2, 2024, 10:58am UTC](https://community.weweb.io/t/please-help-with-binding-dates-in-date-picker/8921 "2024-06-02T10:58:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alnkde](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@alnkde](https://community.weweb.io/u/alnkde)\
**Post date:** [June 2, 2024, 10:58am UTC](https://community.weweb.io/t/please-help-with-binding-dates-in-date-picker/8921/1 "2024-06-02T10:58:53Z")

</div>

Greetings!

Please help me to bind allowed dates in Data Picker from my Xano database. When I try to add formula with date, calendar is hiding, and not working anymore. Its only works in manual mode.

Thanks

 ![Снимок экрана 2024-06-02 в 13.52.37](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/2a037ccb847f4e67e8f0b7db02ca25cb57f6c811.png)

---

<div class="post-metadata">

**Author:** ![alnkde](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@alnkde](https://community.weweb.io/u/alnkde)\
**Post date:** [June 2, 2024, 11:31am UTC](https://community.weweb.io/t/please-help-with-binding-dates-in-date-picker/8921/2 "2024-06-02T11:31:08Z")

</div>

Here is errors from JavaScript chrome console (maybe it helps):

 ![Снимок экрана 2024-06-02 в 14.30.28](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a8f957ccfeb31d7aa857554725a9476434afd887.png)

---

<div class="post-metadata">

**Author:** ![alnkde](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@alnkde](https://community.weweb.io/u/alnkde)\
**Post date:** [June 4, 2024, 7:18am UTC](https://community.weweb.io/t/please-help-with-binding-dates-in-date-picker/8921/3 "2024-06-04T07:18:36Z")

</div>

It’s not working ? 🙄

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [June 4, 2024, 3:26pm UTC](https://community.weweb.io/t/please-help-with-binding-dates-in-date-picker/8921/4 "2024-06-04T15:26:15Z")

</div>

Hi @alnkde 👋

The `Allowed dates` setting expects an array of dates like this:

 ![CleanShot 2024-06-04 at 17.23.44@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/1d32c0574d683643359656b3ffa1223ac37ba528.png)

In your example, you are binding to a string. If your intention is for only one date to be available, you’ll still need to “wrap it” inside an array. For example: `["2024-06-01"]`

---

<div class="post-metadata">

**Author:** ![alnkde](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@alnkde](https://community.weweb.io/u/alnkde)\
**Post date:** [July 26, 2024, 1:52pm UTC](https://community.weweb.io/t/please-help-with-binding-dates-in-date-picker/8921/5 "2024-07-26T13:52:31Z")

</div>

Thank you. It’s worked!
