chinasofti-dateformat

0.7.0 • Public • Published

##安装

npm install chinasofti-dateformat -s

##导入

const date = require('chinasofti-dateformat')

##格式化时间

//调用dateFormate 对时间进行格式化
const dtStr = date.dateFormat(new Date())

//结果2024-3-15 19:20:50
console.log(dtStr)

Readme

Keywords

Package Sidebar

Install

npm i chinasofti-dateformat

Weekly Downloads

2

Version

0.7.0

License

ISC

Unpacked Size

1.99 kB

Total Files

3

Last publish

Collaborators

  • jiaqianwang