[date instance|date string|timestamp]
eg:YYYY-MM-DD HH:mm:ss
formated date
timeformat('2018-10-10 10:30:20', 'MM/DD HH:mm)
// => 10/10 10:30
const date = new Date('2018-10-10 10:30:20')
timeformat(date, 'MM/DD HH:mm)
// => 10/10 10:30
const date = new Date('2018-10-10 10:30:20')
timeformat(date.getTime(), 'MM/DD HH:mm)
// => 10/10 10:30
Generated using TypeDoc
format type by fmt