setFullYear、setMonth、setDate 可設定日期。
var d = new Date(); d.setFullYear(1992, 9, 1);
月份從 0 開始計算,因此 9 代表十月。setFullYear 可一次設定年、月、日。