I am Using date picker in my app,
I tried to disable dates using min date and max date, but dates are not disabling.
I used below expression:
<wi-datepicker bind-qs-var="vEndDate" popup="true" default="vMaxDate" min-date="vMinDate" max-date="vMaxDate">
variables and load script:
Max(CanonicalDate) AS DateMax,
Min(CanonicalDate) AS DateMin
LET vMaxDate = FieldValue('DateMax', 1);
LET vMinDate = FieldValue('DateMin', 1) -1; // Needed to control the minum date autogenerated in Sales table is included in the MasterCalendar
DROP TABLE CalendarTemp;
let vStartDate = Date('$(vMinDate)');
let vEndDate = Date('$(vMaxDate)');
let vYesterday = date(vMaxDate)-1;
I went through all above discussions.
I have done same has michael torralo's example the date picker is working fine, but i am not able to disable the dates according to max and min dates.
did you try with this:
<wi-datepicker bind-qs-var="vDate" popup="true" min-date="2014-10-20" max-date="2014-10-31" > </wi-datepicker>
One thing i know is this due to date formatting, Qwidget is expecting in the format
I think my date format is not matching with it.
Even though i tried with max-date="date(vMaxDate,'YYYY-MM-DD')" is not working.
Anyone help on this, where i am going wrong.