Quote:
Originally Posted by Philip M
Code:
var d = parseInt(days)
|
The JavaScript function for getting the integer portion of a number is Math.floor() so that statement should read:
Code:
var d = Math.floor(days);
parseInt is for converting numbers between bases - eg binary to decimal, hexadecimal to decimal or even base 36 to decimal.