# \[\*New\* Wix Forms\] Disable current day and weekends from Date Picker

**URL:** <https://forum.wixstudio.com/t/new-wix-forms-disable-current-day-and-weekends-from-date-picker/66656>\
**Category:** Ask the community\
**Tags:** question, wix-forms, code, wix\
**Created:** [December 30, 2024, 7:22pm UTC](https://forum.wixstudio.com/t/new-wix-forms-disable-current-day-and-weekends-from-date-picker/66656 "2024-12-30T19:22:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmormina](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/bmormina/32/82445_2.png) [@bmormina](https://forum.wixstudio.com/u/bmormina)\
**Post date:** [December 30, 2024, 7:22pm UTC](https://forum.wixstudio.com/t/new-wix-forms-disable-current-day-and-weekends-from-date-picker/66656/1 "2024-12-30T19:22:34Z")

</div>

**Question:**  
I am recreating my old forms with the new WIX Forms (the drag and drop editor). Is there a way to block off weekends from the Date Picker?

The old forms had an easy way to select the days of the week I wished to disable/enable… The New Forms do not have this function.

_I am a novice with coding._

**Product:**  
Wix Editor

**What are you trying to achieve:**  
I would like to block off the current day, and weekends from the date picker. Prevent the user from choosing **today** , **Saturday** and **Sunday**.

**What have you already tried:**  
I references this:  
[https://dev.wix.com/docs/velo/api-reference/$w/date-picker/disabled-days-of-week](https://dev.wix.com/docs/velo/api-reference/$w/date-picker/disabled-days-of-week)

and tried:  
`$w("#myDatePicker").disabledDaysOfWeek = [0, 6];`  
and `$w("#date_picker_162a").disabledDaysOfWeek = [0, 6];`

However, this does not seem to work.

In the screenshot of my code, you will notice that I disabled a few lines of code from my old form. If some of these lines need to reactivated, please let me know.

**Additional information:**  
See images

 ![Screenshot 2024-12-30 at 2.05.00 PM](https://us1.discourse-cdn.com/wix/original/3X/b/2/b27729c7011d7f935ee9b25255a06a7b1151444f.png)  
 ![Screenshot 2024-12-30 at 2.05.31 PM](https://us1.discourse-cdn.com/wix/original/3X/4/2/42fb691319e84bfc927ab419bc1e67a7983dd65e.png)  
 ![Screenshot 2024-12-30 at 2.12.26 PM](https://us1.discourse-cdn.com/wix/original/3X/1/d/1d557df953397e96d1c15e73c1b68bcfff8ae21c.png)

---

<div class="post-metadata">

**Author:** ![user6672](https://avatars.discourse-cdn.com/v4/letter/u/e47774/32.png) [@user6672](https://forum.wixstudio.com/u/user6672)\
**Post date:** [November 30, 2025, 12:43pm UTC](https://forum.wixstudio.com/t/new-wix-forms-disable-current-day-and-weekends-from-date-picker/66656/2 "2025-11-30T12:43:49Z")

</div>

Any solution you got? Because i am facing the same issue.
