Datepicker Issue(Start date & End date validation)

Hello webix team,

Please refer this snippet: https://snippet.webix.com/jqcg4ayc

Here End date should not be smaller than Start date.In above snippet It’s working in the case of days comparison but not in the case of month comparison. Please provide solution for it.

This happens because you compare the dates as strings. Compare them as Dates (getValue() instead of getText())

…and in general it’s best to move this check into a function, because the code is the same and it’s copied twice.