-
1
- #1
I have a timestamp object that looks like this: timestamp = 1430770060000. I want to remove the last 3 numbers which represent miliseconds. Since it is a date object, I can't find a method to remove the miliseconds. I tried to convert the value to a string and then use the slice(0,3) to remove the last 3 numbers and convert the remaining 10 characters back to a date, but had an issue. Can someone please help me understand how I can remove the miliseconds from the date.