get current time in milliseconds javascript code example Example: js get date in ms Date.now() // 1602680486141