test.js 186 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 var fs = require('fs'); var stat = fs.statSync('./package.json'); // or some other file console.log(stat.mtime); console.log('' + stat.mtime); console.log(JSON.stringify(stat.mtime));