Skip to content

bsrliom/date-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

date-ext

npm install 'bs-date-ext'

let date = new Date()

date.format() // 2018-04-25 07:23:00

date.format('YYMMdd') // 180425

date.format('yyyy-MM-dd hh:mm:ss.ms') // 2018-04-25 07:23:00.617

dated.addStr('12 day').format('YYMMdd')) // 2018-05-07 07:23:00

dated.addStr('-48 hour').format('YYMMdd')) // 2018-04-23 07:23:00

About

extention for Date

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published