date comparison

let date1 = $$(“formStream”).getValues().date_ready;
let date2 = $$(“formStream”).getValues().date_end;

if ((date1 > date2)){
webix.alert({
title: _(“Внимание!”),
text: _(“Поручение просрочено”),
type:“alert-error”
});
}

doesnt work. is there any solution?

Hello @arik,

doesnt work. is there any solution?

Could you please provide more insight into the issue you are having? As far as I can see, the code you’ve provided should work without any issue, provided the conditions are met (date1 > date2) and the code gets correctly initialized - https://snippet.webix.com/us2iu8se.