Hi,
I am trying validation for Start Date, End Date and Current date.
I am facing 2 issues :-
- I am trying to validate Start and End date in the Scheduler lightbox.
Following code I am using :-
if(dhx.i18n.fullDateFormatStr(data.start_date) < dhx.i18n.fullDateFormatStr(data.end_date)){
alert(“Start Date should be less than End date”);
}
But here I am facing some problem. When I select Start Date greater than End Date scheduler automatecally assigns Start Date value to End Date.
- Another issue is I am also validating Start date with current date.
Following code I am using :-
if(dhx.i18n.fullDateFormatStr(data.start_date) < dhx.i18n.fullDateFormatStr(new Date())){
alert(“Start Date with time should not be less than current date with time.”);
}
Its works fine for Same month but do not work for different months.
PFA demo.
Please help to resolve this issue.
Thanks in advance for help.
Regards,
Vishal Kadam.
cal.zip (244 KB)