javascript - Knockout bind HTML datepicker min and max -
i have 2 html date pickers having trouble with. trying set value , apply minimum , maximum criteria knockout. after research found the proper date format proper format value, min, , maximum. trouble is, min , max not seem work. here html date picker: <input type="date" data-bind="value: mindate, min: mindaterange, max: maxdaterange" /> the format of dates yyyy-mm-dd in accordance link sent. if manually apply min , max attributes date format works fine. have idea doing wrong? you can't use min , max because there no such bindinghandlers. can use attr bindinghandler: <input type="date" data-bind="value: mindate, attr: { min: mindaterange, max: maxdaterange }" />