Skip to content

soldair/node-pad-date

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-paded-date

simply create padded date strings

var paddedDate = require('padded-date')

console.log(paddedDate(new Date()))

prints

{ day: '04',
  month: '09',
  year: 2013,
  hours: '11',
  minutes: '30',
  seconds: '47' }

there are a few helpers i use alot hanging off of the main export,

paddedDate.fileDate

2013-09-04_113355

paddedDate.dbDate

2013-09-04 11:33:55

About

simply create padded date strings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages