Link to home
Start Free TrialLog in
Avatar of Member_2_1242703
Member_2_1242703

asked on

Jqeury/JS: Mutiplying the difference in 2 dates and comparing to another number

I have 2 textboxes and a label. The two textboxes will have dates in them and the label will have a number.

How would i get the difference in days multiplied by 8 and compare it to the number in the label.

i.e.
TB1.val = "2/17/2017"
TB2.val = "2/19/2017"
LB1.text = "40"

If dateDiff(TB1, TB2) * 8 (in this case 24) > LB1.Text then
do something
else
do something different

(sorry I know this isn't real code, hopefully you get the idea)
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial