How would I disable today's date in a date picker? I found this article, but it doesn't tell me about the current date.
https://www.wix.com/code/reference/$w.DatePicker.html
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
@Andreas Kviby it marks "now." as an error. How can I fix this?
Hey
Do it like this.
let badDate = new Date(now.getFullYear(), now.getMonth(), now.getDate()); $w("#datePickerID").disabledDates = [badDate];
That way the todays date will be disabled. If you like my comment please mark it as TOP COMMENT as it helps me a lot.
Thank you!