Hi all
I take an event date from my database e.g. 2010-09-19
A user selects an arrival date and departure date from two calenders e.g:
Arrival: 2010-09-18
Depart: 2010-09-20
Now, in the example above, the customer arrives the day before the event date and departs the following day but what I need help with is a routine which will detect of the arrival date is greater than X number days BEFORE the event date (typically it will be 3 days).
If the difference between the arrival date and the event date is greater than this value, I will just display an error.
Any advice on where to start would be greatly appreciated.
Doug