Date.getDay() 會依本地時間回傳日期物件對應的星期幾,範圍為 0 到 6。
new Date().getDay()
0 代表星期日,1 代表星期一,依此類推。
若需要 UTC 星期,可使用 getUTCDay()。