JScript 的 Date 物件的各種方法


today.getDate() ===> 3
today.getDay() ===> 4
today.getHours() ===> 12
today.getMinutes() ===> 44
today.getMonth() ===> 3
today.getSeconds() ===> 58
today.getTime() ===> 1743655498471
today.getTimezoneOffset() ===> -480
today.getFullYear() ===> 2025
today.toGMTString() ===> Thu, 3 Apr 2025 04:44:58 UTC
today.toLocaleString() ===> 2025年4月3日 下午 12:44:58

View source: [Server-side script] [Client-side script (ctrl+u)]
回到「JScript 程式設計與應用:伺服器端