User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 397,188 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,592 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 517 | Replies: 1
Reply
Join Date: Dec 2007
Posts: 15
Reputation: bungek84 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
bungek84 bungek84 is offline Offline
Newbie Poster

how to manage start time with end time??

  #1  
Apr 13th, 2008
hi guys..
i really need guides and helps about this problem..
i've two dropdown list which contain time.. when user select start time in dropdownlist1, the user can not select same value in dropdown list2..the range time from start time in dropdown list1 with end time in dropdown list 2 should minimum 2hours..

For example,
let says i select 8.00AM.. the end time that i should select is 10.00AM.. hopefully somebody can answer my question & can give me some coding about this!!

Regards,
ct
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,524
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 105
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: how to manage start time with end time??

  #2  
Apr 14th, 2008
How about just asking if the end time is less than or equal to 2 hours past the start time. If it is so, add 24 hours.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 4:34 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC