Date

MethodDescription

new Date()

įžåœ¨æ™‚é–“

new Date(); // Tue Jun 04 2024 10:52:23 GMT+0800 (Taipei Standard Time) new Date("2014-02-01");

new Date().getTime()

čŊ‰æˆæ•¸å­—īŧŒåžž 1970 開始įŽ—

new Date("1970-01-01").getTime() // 0 new Date("1970-01-02").getTime() // 86400000 24 hour * 60 min *60 sec * 1000 ms = 86400000

Last updated