Hi,
This is the first time i am posting any thread.Please let me know where i went wrong in posting my problem.

PROBLEM:-I am having 2 calenders - one is from_date & the other is to_date.The difference between the two dates which i select in the respective calenders (from_date:-06/08/25 , to_date:-06/08/30)should not be more than 5.In case it is ,it should throw an alert.I want to know the javascript for this .If anyone can help me out with this as soon as possible.

Thanks,
Top.

Without seeing your script, I would suggest using an if statement.

something along the lines of

if (dateb-datea > 5) { alert('The dates are more than 5 days apart'); }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.