mnisting-date
v1.0.1
Published
日期格式化插件
Downloads
5
Readme
⬇Install
npm i mnisting-date -S
Usage
const mnistingDate = require('mnisting-date')
console.log(mnistingDate) // {author:'mnisting', format: fn}
语法:mnistingDate.format('随意组合')
例如:
console.log(mnistingDate.format('YmdHis'))
console.log(mnistingDate.format('Y-m-d H:i:s'))
console.log(mnistingDate.format('Y/m/d'))
console.log(mnistingDate.format('Y/m/d H:i:s'))
console.log(mnistingDate.format('Y年m月d日 H:i:s'))