Just ran into the same problem, but with a few timestamps, for example:
1356036198452 1356039026690 1356039067568 1356035166411
In my case, there can be from 1 to 100 timestamps.
So the fastest way to get to the βlatestβ date (in my opinion) would be to do this:
var newestDate = Math.max(1356036198452,1356039026690,1356039067568,1356035166411); alert(newestDate);
Hope someone helps in the real world.
source share