thanks
i try something like this :
function getDistance(time1) // time1 another date which i make by gettoday()
{
return Math.round((gettoday()-time1)/(60*60*24));
}
function gettoday()
{
var nowdate = new Date();
return nowdate/1000;
}
↧