This package make you date formats like YYYYMMDDhhmmss, YYYYMMDD
npm i @kimjunseoo/yyyymmddhhmmss
import { YYYYMMDDhhmmss } from "@kimjunseoo/yyyymmddhhmmss";
console.log(YYYYMMDDhhmmss());
return
20230511002821
import { YYYYMMDDhhmmss } from "@kimjunseoo/yyyymmddhhmmss";
console.log(YYYYMMDDhhmmss());
return
20230511002821
import { YYYYMMDD } from "@kimjunseoo/yyyymmddhhmmss";
console.log(YYYYMMDD());
return
20230511
import { hhmmss } from "@kimjunseoo/yyyymmddhhmmss";
console.log(hhmmss());
return
154111
import { YYYY } from "@kimjunseoo/yyyymmddhhmmss";
console.log(YYYY());
return
2023
import { MM } from "@kimjunseoo/yyyymmddhhmmss";
console.log(MM());
return
05
import { DD } from "@kimjunseoo/yyyymmddhhmmss";
console.log(DD());
return
11
import { hh } from "@kimjunseoo/yyyymmddhhmmss";
console.log(hh());
return
15
import { mm } from "@kimjunseoo/yyyymmddhhmmss";
console.log(mm());
return
44
import { ss } from "@kimjunseoo/yyyymmddhhmmss";
console.log(ss());
return
37