(date.getYear()+" "+date.getMonth() + " " + date.getDate()+" "+date.getDay()

getYear()是返回從1900到現在的年數
getMonth()由於月份是存在數組內,所以0代表1月,11代表12月,所以返回的數值會比實際少一
getdate()返回當前月的第幾天
getday()返回星期幾 ,1是週一, 0是週日

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章