To get current timestamp in JavaScript, use this quick code snippet:
var timestamp = DateTime.now().millisecondsSinceEpoch.toString()
print(timestamp);
Posted by I. B. Gd Pramana A. Putra, 10 Aug 22, last updated 10 Aug 22
To get current timestamp in JavaScript, use this quick code snippet:
var timestamp = DateTime.now().millisecondsSinceEpoch.toString()
print(timestamp);
I love sharing code snippets as most of the time, a quick code example is what we're looking for instead of long-written articles. If you think my code snippets are helpful and save you a lot of time, please consider buying me a cup of coffee :)