formatedatetimehu
v1.0.4
Published
format date
Downloads
8
Readme
start
npm i formatedatetimehu
import formatT from 'formatedatetimehu'
let newTime = formatT(1559726263361)
npm i formatedatetimehu
import formatT from 'formatedatetimehu'
formatT(time, symbol); //time->time, symbol-> eg:'~' '/' ',' ...
let newTime1 = formatT(1559726263361) //newTime1 = "2019-06-03 17:17:43"
let newTime2 = formatT('2018-12-12', '/') //newTime2 = ""2018/12/03 08:00:00""