now-yyyymmdd-hhmmss
v0.1.3
Published
Return current date as string in format `yyyyMMdd-HHmmss`.
Downloads
27
Readme
now-yyyymmdd-hhmmss
Return current date as string in format yyyyMMdd-HHmmss
.
API
This module exports one function which holds another function:
nowFmt()
Return current date as string in format yyyyMMdd-HHmmss
.
nowFmt.custom(opt)
Where opt
is a mandatory options object which holds these mandatory keys:
sep
: String that should be put between date and time, instead of the hyphen-minus.
Known issues
- Needs more/better tests and docs.
License
ISC