by @kodeazy
JavaScript How to get timestamp?
-
we use
getTime()
function ofnew Date()
to get current timestamp.new Date().getTime()
Output:
1634625892858
we use getTime()
function of new Date()
to get current timestamp.
new Date().getTime()
Output:
1634625892858