Is there a way to add condition when using calendars on a form? How can I disable previous dates and current date?

https://www.wix.com/corvid/reference/$w/datepicker/mindate

Thanks! I will send an update once I get it fixed

Trial and error, I got it to work using below.

$w.onReady(function () {

let today = new Date();
let startDate = new Date(today);

startDate.setDate(startDate.getDate() + 1); // Start Date +1 day from today //
let endDate = new Date(today);

$w(“#datePicker1”).minDate = startDate;

});

You don’t need the first line (the let today line).
You can start from:

let startDate = new Date();