Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
10-09-2012, 11:07 AM #1
- Join Date
- Oct 2012
- Thanked 0 Times in 0 Posts
Date conflict between new event & existed events startDate,endDate
i have a add button and three text boxesfrom where the user will Add eventName,event startDateand ,endDate. now while adding the java script must check wheather the new events date are falling inside of any other events duration time.
as example if first event is from 05/01/22012 to 10/01/2012 , then the second event must start and also comolete BEFORE 05/01/22012 or else
and at last i have to show the varified events in a dynamic table
i am a new learner of java script, so please if you can add some code with reply. thanks for reading my problem and also heartfull thanks in advance for your valuable reply.
10-09-2012, 12:52 PM #2
- Join Date
- Jun 2002
- London, England
- Thanked 2,578 Times in 2,556 Posts
But you must still ensure that the input is valid - only valid dates (not 31st February), in the right format dd/mm/yyyy, and that the end date is after the start date.
I leave that to you. I have invented data for the first three items.
This outline should move you forward:-
If you closed your eyes you wouldn't be able to tell which was the Premier League team - Commentator Radio 5 Live
Last edited by Philip M; 10-09-2012 at 01:15 PM.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Users who have thanked Philip M for this post: