Click here to Skip to main content
15,885,876 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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
Updated 1-Feb-12 20:34pm
v2
Comments
manognya kota 2-Feb-12 2:05am    
Where are you stuck in the javascript code?
gani7787 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 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

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.
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900