Javascript Get Current Timestamp Example
Jul 14, 2021 . Admin

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Javascript get current timestamp</title> </head> <body> <script type="text/javascript"> var timestamp = new Date().getTime(); console.log(timestamp); </script> </body> </html>Output:
1625203572591Example: 2
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Javascript get current timestamp</title> </head> <body> <script type="text/javascript"> var timestamp = new Date().getTime(); console.log(timestamp); </script> </body> </html>Output:
1625203604619
It will help you....