Get started quickly Install npm install lzhproject-time Complete example You need to pass the timestamp of the conversion when calling, and the format of the output! !! !! const time = require('lzhproject-time') let mytime = time.gettime(1576167137735,"M-D h:m")