# layui/laydate

一款被广泛使用的高级 Web 日历组件，完全开源无偿且颜值与功能兼备，足以应对日期相关的各种业务场景

Repository: https://github.com/layui/laydate
Canonical: https://ross.abutalabs.com/products/laydate
Language: JavaScript
License: MIT
License Family: permissive
Topics: laydate, date, time, datetime, datepicker, calendar
Last push: 2023-03-31T16:18:45+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4456, "days_push": 1251, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1102, forks 570 (observed 2026-08-28T04:03:35.809043+00:00)

## What it is
LayDate is a widely used, zero-dependency vanilla JavaScript calendar and date-picker component for the web. It supports year, year-month, date, time, and datetime pickers, all with range (dual-control) selection, custom date format parsing, and both Chinese and international versions.

## Use cases
- add a date picker to a web form
- let users select a date range
- build a time picker with custom format
- pick year or month in a browser UI
- embed a standalone calendar widget without dependencies

## When to choose
- you need a lightweight, dependency-free date/time picker in vanilla JavaScript
- you need range selection and flexible custom date formats
- you want a polished calendar widget with Chinese and international localization

## When to avoid
- you need a full UI framework with many components
- you want a React/Vue-native date picker integrated with that framework's state
- you need mobile-first touch-optimized pickers

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, form-handling, date-time
- domain: web-development, frontend
- platform: browser
- tags: datepicker, calendar, time-picker, zero-dependency, range-selection, javascript

## Member repositories
- layui/laydate (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:35.809043+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:45:38.324241+00:00, confidence not recorded.
  - readme: https://github.com/layui/laydate (fetched 2026-08-28T04:03:35.809043+00:00, sha 5fd900404c6a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
