Date.getDate() 會依本地時間回傳日期物件中的「日」,範圍為 1 到 31。
new Date().getDate()
這個方法常用於日期格式化、月曆與到期日計算。
若需要 UTC 日期,可使用 getUTCDate()。