Question: how to calculate days difference in jquery?
Answer: var start = new Date("2010-04-01"), end = new Date(), diff = new Date(end - start), days = diff/1000/60/60/24; days; //=> 8.525845775462964.