AddDate 參考 範例 javascript 日期增減
function GetWeek(day)
{
var weekperiod = new Array(2);
/// 宣告起始日期
var dayweekFirst = AddDate(day,-day.getDay());
/// 宣告結束日期
var dayweekLast = AddDate(dayweekFirst 6);
//alert("today: " +day);
//alert("dayweekFirst: " +dayweekFirst);
//alert("dayweekLast: " +dayweekLast);
weekperiod[0] = dayweekFirst;
weekperiod[1] = dayweekLast;
return weekperiod;
}
沒有留言:
張貼留言