# laydate

> package version for laydate

Latest version **1.0.7** (published 2017-02-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install laydate
pnpm add laydate
yarn add laydate
bun add laydate
```

## 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 | 1.0.7 |
| Published | 2017-02-22 |
| First published | 2017-02-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1103 |
| Author | liuhan@xbniao.com |
| Maintainers | liuhan |
| Keywords | layui, laydate, datepicker, date, time, timepicker |

## Links

- npm: https://www.npmjs.com/package/laydate
- Repository: https://github.com/sentsin/laydate
- Homepage: https://github.com/sentsin/laydate#readme
- Issues: https://github.com/sentsin/laydate/issues
- npm.io page: https://npm.io/package/laydate

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2017-02-22
- 1.0.6 — 2017-02-21
- 1.0.5 — 2017-02-21
- 1.0.4 — 2017-02-21
- 1.0.3 — 2017-02-17
- 1.0.2 — 2017-02-17
- 1.0.1 — 2017-02-17
- 1.0.0 — 2017-02-17

## README

A npm version of laydate from [laydate](http://www.layui.com/doc/modules/laydate.html)
 
## Install with `npm`:

```sh
npm i --save laydate
```


## In Code 
 
```html     
<input name="mydate" id="mydate">
```


```javascript
var laydate = require("laydate");

//init date
laydate({
elem: '#mydate'
});

//reset 
laydate.reset();

```

      
and here is the options supported      
     
```javascript
 {
      elem: '#id', //需显示日期的元素选择器
      event: 'click', //触发事件
      format: 'YYYY-MM-DD hh:mm:ss', //日期格式
      istime: false, //是否开启时间选择
      isclear: true, //是否显示清空
      istoday: true, //是否显示今天
      issure: true, 是否显示确认
      festival: true //是否显示节日
      min: '1900-01-01 00:00:00', //最小日期
      max: '2099-12-31 23:59:59', //最大日期
      start: '2014-6-15 23:00:00',  //开始日期
      fixed: false, //是否固定在可视区域
      zIndex: 99999999, //css z-index
      choose: function(dates){ //选择好日期的回调
     
      }
    }
```

      
find more at http://www.layui.com/doc/modules/layer.html

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