Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Javascript
How to get total weeks in between two .net dropdown dates in java   script
 
Estimated Hours : 1500
 
Every week hours : 47
 
1stdrop down values : 20-2011 (20th week and 2011 year)
2nd dropdown values : 3-2012 (2nd week and 2012 year)
 
First : I want to get total weeks in between two dropdown values.
Second   : once i get the total weeks, then i want to multiple by every week man hours.
 
for example. my total week is : 35 weeks.
 
Third :   Now Total Week hours is 35 * 47 =   1645 hours.
 
Fourth : This total hours, i want to compare with Estimated hours.
 
Fifth : If total week hours is Exceed with Estimated hours, need to display the popup
alert ('Exceed total week hours') otherwise it should allow to submit.
 
The entire operation should happen when i click submit button then immediately check
using JavaSvript.
Posted 1-Feb-12 21:02pm
gani77871.3K
Edited 1-Feb-12 21:34pm
v2
Comments
manognya kota at 2-Feb-12 2:05am
   
Where are you stuck in the javascript code?
gani7787 at 2-Feb-12 3:23am
   
getting total number of weeks in between two dropdown date values..
example:
drop1 values : 20-2011 (20th week and 2011 year)
drop2 values : 3-2012 (2nd week and 2012 year)
 
How to get total weeks in between the drop1 and drop2 values..
manognya kota at 2-Feb-12 3:28am
   
I got your question.I meant did you try writing the javascript code for it?If so, where are you stuck?Request you to google the same or for getting days between two dates using javascript.Try and post if you are still facing any issues.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,
 
To help you with search,on a google search of your question,i got the below links.
 
This[^]
 
I guess there are many solutions in that links.
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 2 Feb 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100