# mistletoejiejie-date

> 日期时间格式化

Latest version **2.0.0** (published 2022-09-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install mistletoejiejie-date
pnpm add mistletoejiejie-date
yarn add mistletoejiejie-date
bun add mistletoejiejie-date
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-09-01 |
| First published | 2022-09-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mistletoejiejie |

## Links

- npm: https://www.npmjs.com/package/mistletoejiejie-date
- npm.io page: https://npm.io/package/mistletoejiejie-date

## Recent versions

- 2.0.0 (latest) — 2022-09-01
- 1.0.0 — 2022-09-01

## README

# 下载

```
npm mistletoejiejie-date -D
```

# 使用

```
注：日期格式化

const miDate = require('mistletoejiejie-date')
console.log(miDate.format('y-m-d h:i:s'))

语法：miDate.format('随意组合词keywords')

    'y' : 年
    'm' : 月
    'd' : 日
    'h' : 时
    'i' : 分
    's' : 秒



举个栗子🌰
miDate.format('ymdhis')
miDate.format('y-m-d h:i:s')
miDate.format('y/m/d')
miDate.format('y/m/d h:i:s')
miDate.format('y年m月d日 h:i:s')
miDate.format('y')
miDate.format('m')
miDate.format('d')
miDate.format('h')
miDate.format('i')
miDate.format('s')


```

---
_Source: https://npm.io/package/mistletoejiejie-date · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
