2008年8月22日 星期五

計算日數




var now=new Date();var spday=new Date(2003,2-1,4);
a=(now.getTime()-spday.getTime())/(24*60*60*1000);a=Math.ceil(a);
document.write(""+a+"");



沒有留言: