Check value between two data
I have two datapicker that beautifully work, but how should I check if the number of day between the two datas are <= of 5 days?
Ex. The event starts on Apr. 21th, if it ends on/before Apr. 26th the form should validate, otherwise it shows an error message.
Thanks!