How do I get a timestamp in JavaScript?asked17 years agolast updated3 years agoviewed3.9m timesUp Vote4.7kDown VoteI want a single number that represents the current date and time, like a Unix timestamp.