1.0.4 • Published 4 years ago

@pforth/yyyymmdd v1.0.4

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
4 years ago

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();
1.0.2

4 years ago

1.0.1

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

5 years ago