by @kodeazy

JavaScript How to get timestamp?

Home » JQuery » JavaScript How to get timestamp?
  • we use getTime() function of new Date() to get current timestamp.

    new Date().getTime()

    Output:

    1634625892858