End date must greater than start date - MooTools date picker

How to validate that an end date is greater than a start date using the MooTools date picker.

Overview

The issue occurred due to incorrect configuration of the minDate and maxDate settings in the date picker.
Carefully reconfigure the date picker settings to properly set the date range, ensuring the validation works to display the correct error message.

Answered
ni nilubon03 15 Jun, 2015
Hello,

I am using MooTools date picker for start date and end date. I need to have a validation not allow end date less than start date.

I tried to follow this instruction, but I did not understand enough to apply and make the error message pop up and said "End date must greater than start date".
https://www.chronoengine.com/faqs/64-cfv4/cfv4-using-the-datepicker/3161-how-can-i-select-a-range-of-dates-part-2.html

Please advise,

Thank you,

Nilubon
ni nilubon03 15 Jun, 2015
No, it did not help.

Thanks automated service.
ni nilubon03 15 Jun, 2015
Actually, it worked.

I messed around with the minDate and maxDate, that caused the code did not work properly. I started over carefully, now I see it worked.

Bob, Thank you for your code. It helps a lot.

Nilubon
This topic is locked and no more replies can be posted.