How to get alert when departure date is earlier than arrival date