JScript 的 Date 物件的各種方法


today.getDate() ===> 23
today.getDay() ===> 6
today.getHours() ===> 8
today.getMinutes() ===> 33
today.getMonth() ===> 10
today.getSeconds() ===> 18
today.getTime() ===> 1732321998319
today.getTimezoneOffset() ===> -480
today.getFullYear() ===> 2024
today.toGMTString() ===> Sat, 23 Nov 2024 00:33:18 UTC
today.toLocaleString() ===> 2024年11月23日 上午 08:33:18

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