我想獲取擴大日期去特定的日期,所以我想用今天的日期來檢測特定的日期。但是這不是在這裏工作是我的code如果日期是下個月27我怎樣才能得到剩下的日子去我如何找到使用Javascript的兩個日期之間的差異
var date2=new Date();
var date1=27/5/2012;
var diff = date1.getDate()-date2.getDate();
var date_reaming = diff.getDate();
document.write(date_reaming + 'days to go');
的可能重複:HTTP://計算器。 COM /問題/ 542938 /怎麼辦-I-GET-的用戶號碼的天之間,兩日合的jQuery – billyonecan 2012-04-19 09:34:44