JavaScript从Mongo的id获得时间戳
var timestamp = _id.toString().substring( 0, 8 ); var date = new Date( parseInt( timestamp, 16 ) * 1000 );
JavaScript从Mongo的id获得时间戳
var timestamp = _id.toString().substring( 0, 8 ); var date = new Date( parseInt( timestamp, 16 ) * 1000 );