Skip to content

kimjunseoo/nowDate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

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

About

npm package for now Date

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published