Calculate percentage between two dates in JavaScript -
i've been trying calculate percentage between 2 dates given code questions here in stackoverflow code doesn't work correctly. question: get percent of time elapsed between 2 javascript dates
var start = new date(2015,6,1), end = new date(2015,12,1), today = new date(); alert(math.round(( ( today - start ) / ( end - start ) ) * 100) + "%");
i want calculate progress 1rst of june 1rst of december , "-7"
please help! thanks
javascript counts months 0 11. january 0 , december 11. specified june december, entered 6 , 12.
Comments
Post a Comment