If user select one date, but then user types a wrong date, it remove the wrong date and leave it with the previous date selected. It is good but could i show a message when that happens, It actually shows a "invalid date" when date field is empty and user types a wrong date.
It should show it this way:
Hi,
Get the value of the date, and then determine whether its format is correct or empty, and then use alert to give a notification whether it can meet your requirements?
If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.
Best Regards,
Frank Gong