javascript比較日期
var myDate=new Date(); myDate.setFullYear(2008,8,9); var today = new Date(); if (myDate>today) { alert("Today is before 9th August 2008"); } else { alert("Today is after 9th August 2008"); }
http://www.w3school.com.cn/js/js_obj_date.asp
留言
張貼留言