@kimjunseoo/yyyymmddhhmmss
v0.2.3
Published
date format including YYYYMMDDhhmmss
Downloads
4
Readme
This package make you date formats like YYYYMMDDhhmmss, YYYYMMDD
Installation
npm i @kimjunseoo/yyyymmddhhmmss
Example
import { YYYYMMDDhhmmss } from "@kimjunseoo/yyyymmddhhmmss";
console.log(YYYYMMDDhhmmss());
return
20230511002821
Type
1. YYYYMMDDhhmmss
import { YYYYMMDDhhmmss } from "@kimjunseoo/yyyymmddhhmmss";
console.log(YYYYMMDDhhmmss());
return
20230511002821
2. YYYYMMDD
import { YYYYMMDD } from "@kimjunseoo/yyyymmddhhmmss";
console.log(YYYYMMDD());
return
20230511
3. hhmmss
import { hhmmss } from "@kimjunseoo/yyyymmddhhmmss";
console.log(hhmmss());
return
154111
4. YYYY
import { YYYY } from "@kimjunseoo/yyyymmddhhmmss";
console.log(YYYY());
return
2023
5. MM
import { MM } from "@kimjunseoo/yyyymmddhhmmss";
console.log(MM());
return
05
6. DD
import { DD } from "@kimjunseoo/yyyymmddhhmmss";
console.log(DD());
return
11
7. hh
import { hh } from "@kimjunseoo/yyyymmddhhmmss";
console.log(hh());
return
15
8. mm
import { mm } from "@kimjunseoo/yyyymmddhhmmss";
console.log(mm());
return
44
9. ss
import { ss } from "@kimjunseoo/yyyymmddhhmmss";
console.log(ss());
return
37