I\'m trying to remove last 3 zeroes 1437203995000
How do i this in javascript. Im generating the numbers from new date() function
Here is an approach using str.slice(0, -n). Where n is the number of characters you want to truncate.
str.slice(0, -n)
var str = 1437203995000; str = str.toString(); console.log("Original data: ",str); str = str.slice(0, -3); str = parseInt(str); console.log("After truncate: ",str);