locode
  • Questions
  • Leaderboard
  • Blog

How do I get a timestamp in JavaScript?

asked17 years ago
last updated3 years ago
viewed3.9m times
Up Vote4.7kDown Vote

I want a single number that represents the current date and time, like a Unix timestamp.

javascriptdatetimetimestampdate-arithmetic
edited
7 Aug at 21:40
from the blog
Generating the PvQ Leaderboard
Getting Help in the Age of LLMs
About
Blog
Archive
Privacy
powered by blazor vue
Site Design © 2024 locode.dev, content licensed under CC BY-SA.