@pforth/yyyymmdd
v1.0.4
Published
Output date in yyyy-mm-dd format
Downloads
848
Readme
This module adds new prototypes to the javascript Date and String objects...
Veradaccio
This project should be published in a locally running npm repo. You can do the following:
npm install -g verdaccio
nohup verdaccio --listen 4873
npm set registry http://localhost:4873/
You can also refer to here
Usage
require("yyyymmdd");
var d=new Date();
console.log(d.yyyymmdd());
console.log(d.yyyymm());
console.log(d.hhmmss());
console.log(d.hhmm());
console.log(d.yyyymmddhhmmss());
console.log(d.yyyymmddhhmm());
let dateObj="2020-05-20".yyyymmdd();
dateObj="2020/05/20".yyyymmdd();