0

I need to have today's date in microsecond precision using Javascript.

Date.now() returns the number of milliseconds (elapsed since midnight at the beginning of January 1, 1970, UTC).

How can I obtain microsecond precision in JS?

Matteo Boscolo
  • 638
  • 2
  • 8
  • 18
  • there is nothing in javascript with that precision for the current Date. `performance.now()` has(had in some cases, that feature being removed years ago) microsecond precision, but the number it returns has no relation to the current Date anyway - of course, you could just multiply the number you get by 1000 – Jaromanda X Feb 08 '23 at 09:16

0 Answers0