jquery - want to show interval days between two selected dates in two months calendar -


i new in jquery. facing problem. using jquery ui calendar. want show date difference , there 2 months calendar. start date , end date highlighted , in between dates highlighted in different color. in bottom of calendar display total interval days(start date end date)i.e. 5days. 10days.

i have done highlighted parts. unable show calculation parts i.e 5days, 10 days .

please follow link reference

https://docs.google.com/a/webskitters.com/file/d/0b1t10tawdw7wqnpqa09hm0hwdee/edit

or

https://drive.google.com/file/d/0b1t10tawdw7wqnpqa09hm0hwdee/edit?usp=sharing

one idea input values from , to text inputs , compute difference in js.

( (new date($('#to').val())).gettime() - (new date($('#from').val())).gettime() ) / (24*60*60*1000) 

should give 5.


Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -