It is simple enough to get timestamp:
new Date().getTime();
but I need to limit the timestamp to 8 characters, and these need to be the last 8 rather than the first 8.
for example:
new Date().getTime(); // returns: 1234567891234
I need it to return:
67891234
can you help?
Thanks in advance
new Date().getTime().toString().substr(-8);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With