I have this value with PHP time() : 1454346117
And in same time with JavaScript Date.now() : 1454346117299
As you see in JavaScript i have 3 more digit in last. How to fix that i need same number?
Thank you
I have this value with PHP time() : 1454346117
And in same time with JavaScript Date.now() : 1454346117299
As you see in JavaScript i have 3 more digit in last. How to fix that i need same number?
Thank you
Use this in javascript:
Math.floor(Date.now() / 1000)
to get the same format