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.
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.